When you run the wr_rrd_update.py, it should store the data in sensors.rrd and weather.rrd file in /usr/share/weatherradio.
wr_rrd_lastupdate.py creates a JSON document in /usr/share/weatherradio/data
The RTsensors_lastupdate should look like that:
{
"BME280_Hum":null,
"BME280_Pres":null,
"BME280_Temp":null,
"DHT_Hum":29.70000076,
"DHT_Temp":24.10000038,
"MLX90614_Tamb":23.90999794,
"MLX90614_Tobj":24.42998695,
"TSL2591_Lux":19.059606549999998,
"timestamp":1650283441000
}
At what point in the documentation are you now? and what exactly is not working?
Read More...
try:
pip install pid
Read More...
Ok that looks good.
Do you perhaps not have write permissions in the folder?
Can you run it with sudo?
Read More...
can you post your wr_config.py?
Read More...
If your indiserver is running on the same machine, you can put the same.
Read More...
I think i had the same issue.
I had to modify the paths in wr_config.py
It was:
def __init__(self):
# setup configuration
self.config = ConfigParser(interpolation=None)
self.config.optionxform = str
# default values
self.config.add_section('WeatherRadio')
# web server configuration
self.config.set('WeatherRadio', 'INDISERVER', '0.0.0.0')
self.config.set('WeatherRadio', 'INDIPORT', '8624')
# RRD storage holding time series data
self.config.set('WeatherRadio', 'RRDFILE',
'/usr/local/share/weatherradio/weather.rrd')
# RRD storage holding time series for raw sensor data
self.config.set('WeatherRadio', 'RRDSENSORSFILE',
'/usr/local/share/weatherradio/sensors.rrd')
# path to the JSON files holding the data
self.config.set('WeatherRadio', 'DATAPATH',
'/usr/local/share/weatherradio/html/data')
# path to the directory holding web cam images and videos
self.config.set('WeatherRadio', 'MEDIADIR',
'/usr/local/share/weatherradio/html/media')
def __init__(self):
# setup configuration
self.config = ConfigParser(interpolation=None)
self.config.optionxform = str
# default values
self.config.add_section('WeatherRadio')
# web server configuration
self.config.set('WeatherRadio', 'INDISERVER', 'localhost')
self.config.set('WeatherRadio', 'INDIPORT', '7624')
# RRD storage holding time series data
self.config.set('WeatherRadio', 'RRDFILE',
'/usr/share/weatherradio/weather.rrd')
# RRD storage holding time series for raw sensor data
self.config.set('WeatherRadio', 'RRDSENSORSFILE',
'/usr/share/weatherradio/sensors.rrd')
# path to the JSON files holding the data
self.config.set('WeatherRadio', 'DATAPATH',
'/usr/share/weatherradio/html/data')
# path to the directory holding web cam images and videos
self.config.set('WeatherRadio', 'MEDIADIR',
'/usr/share/weatherradio/html/media')
It looks like there is a letter "t" in "target" missing.
Failed to enable unit: "multi-user.targe" is not a valid unit name.
It should be: "multi-user.target"
Regards
Rafael
Read More...
I switched from a Raspi 4 to a RockPi 4B with 128 GB eMMC. Same form factor but much faster. Since then i haven't had a single chrash and i'm very happy with it.
Read More...