<commit_before>#!/usr/bin/python
import time
import os
import json
import requests
#for adafruit dht22/AM2302 sensor lib
import sys
import Adafruit_DHT


sensor = Adafruit_DHT.AM2302
pin = 4
technical_humid, technical_room = Adafruit_DHT.read_retry(sensor,pin)
technical_humid = round(float(technical_humid),1)

url = 'http://numberpi.local:3333/homeautomation/technicalroom'
payload = {'technical_room': technical_room, 'technical_humid': technical_humid}
#print (payload)
headers = {'content-type': 'application/json'}
r = requests.post(url, data = json.dumps(payload), headers = headers)<commit_msg>add missing value rounding ton technical room temp value<commit_after>#!/usr/bin/python
import time
import os
import json
import requests
#for adafruit dht22/AM2302 sensor lib
import sys
import Adafruit_DHT


sensor = Adafruit_DHT.AM2302
pin = 4
technical_humid, technical_room = Adafruit_DHT.read_retry(sensor,pin)
technical_room = round(float(technical_room),1)
technical_humid = round(float(technical_humid),1)

url = 'http://numberpi.local:3333/homeautomation/technicalroom'
payload = {'technical_room': technical_room, 'technical_humid': technical_humid}
#print (payload)
headers = {'content-type': 'application/json'}
r = requests.post(url, data = json.dumps(payload), headers = headers)
{'fraction_non_alphanumeric': 0.11119691119691119, 'fraction_numerical': 0.025482625482625483, 'mean_word_length': 7.3076923076923075, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5696785', 'n_tokens_mistral': 463, 'n_tokens_neox': 414, 'n_words': 99}