Hello
I am resuming my astro activities after a one year break.
I had to redo my weather station because it took a shock and there was a water entry.
So I have redone everything, but I have a problem, the data is not updated, and I have the same thing from the serial terminal of the arduino, but if I disconnect and reconnect the data changes.
Is there anything I'm missing?
I am using an arduino nano evry board.
And another thing, I would like to put a heater in it with the control of a 5V relay, how should I do it.
Thank you and see you soon
Translated with www.DeepL.com/Translator (free version)
Read More...
Hello
I've got it working on my tinkerboard, but now I've got another problem, but it's nothing to do with the program itself.
I'm not sure what to do about it, but I'd like to know what I need to do to connect to the web page address from an external network.
Thanks
Read More...
Hello
I'm looking for someone to help me and I've managed to get the images from the camera, but I can't get the web page on my tinkerboard.
Where do I find the configuration of the web page?
Regards
Chris
Read More...
Hello
so I'm not at home right now,
But the server is working, but I still have no info on the web page.
I wanted to know how to check that the data arrives well from the sensors, to see if the connection is good .
Chris
Read More...
Hello
I still don't have any data, but my server is well connected according to what is written on it, so I ask for the server's status
chris@tinkerboard:~$ sudo systemctl status indi-weatherradio.service
[sudo] Mot de passe de chris :
● indi-weatherradio.service - INDI server for weather radio
Loaded: loaded (/etc/systemd/system/indi-weatherradio.service; enabled; ve>
Active: active (running) since Sun 2022-04-17 15:34:19 CEST; 18h ago
Main PID: 1815 (indiserver)
Tasks: 2 (limit: 4748)
Memory: 3.6M
CGroup: /system.slice/indi-weatherradio.service
├─1815 /usr/bin/indiserver -v indi_weatherradio
└─1820 indi_weatherradio
avr 17 15:34:19 tinkerboard systemd[1]: Started INDI server for weather radio.
avr 17 15:34:19 tinkerboard indiserver[1815]: 2022-04-17T13:34:19: startup: /us>
avr 17 15:34:19 tinkerboard indiserver[1815]: 2022-04-17T13:34:19: Driver indi_>
avr 17 15:34:19 tinkerboard indiserver[1815]: 2022-04-17T13:34:19: listening to>
avr 17 15:34:19 tinkerboard indiserver[1815]: 2022-04-17T13:34:19: Driver indi_>
lines 1-15/15 (END)
Hello
how to check that the data arrives at the right place.
Regards
Chris
Read More...
ok this pass, what do I do now
Read More...
OK, it goes through with sudo
but now when I do what is marked there, it doesn't work
this is what happens
chris@tinkerboard:~$ cd /usr/share/weatherradio
chris@tinkerboard:/usr/share/weatherradio$ ./bin/wr_rrd_update.py
Traceback (most recent call last):
File "./bin/wr_rrd_update.py", line 21, in <module>
from pid.decorator import pidfile
ModuleNotFoundError: No module named 'pid'
chris@tinkerboard:/usr/share/weatherradio$ sudo ./bin/wr_rrd_update.py
[sudo] Mot de passe de chris :
Traceback (most recent call last):
File "./bin/wr_rrd_update.py", line 21, in <module>
from pid.decorator import pidfile
ModuleNotFoundError: No module named 'pid'
ok
here is my file
!/usr/bin/python3
# -*- coding: latin-1 -*-
#-----------------------------------------------------------------------
# Configuration of Weather Radio.
#
# Copyright (C) 2021 Wolfgang Reissenberger <sterne-jaeger@openfuture.de>
#
# This application is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
#-----------------------------------------------------------------------
from configparser import ConfigParser
from os import path
class WeatherRadioConfig:
config = None
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')#0.0.0.0
self.config.set('WeatherRadio', 'INDIPORT', '7624')#8624
# 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')
######### INDI Weather vector and element names
self.config.set('WeatherRadio', 'WEATHER', 'WEATHER_PARAMETERS')
self.config.set('WeatherRadio', 'WEATHER_TEMPERATURE', 'WEATHER_TEMPERATURE')
self.config.set('WeatherRadio', 'WEATHER_PRESSURE', 'WEATHER_PRESSURE')
self.config.set('WeatherRadio', 'WEATHER_HUMIDITY', 'WEATHER_HUMIDITY')
self.config.set('WeatherRadio', 'WEATHER_CLOUD_COVER', 'WEATHER_CLOUD_COVER')
self.config.set('WeatherRadio', 'WEATHER_SQM', 'WEATHER_SQM')
self.config.set('WeatherRadio', 'WEATHER_DEWPOINT', 'WEATHER_DEWPOINT')
self.config.set('WeatherRadio', 'WEATHER_SKY_TEMPERATURE', 'WEATHER_SKY_TEMPERATURE')
self.config.set('WeatherRadio', 'WEATHER_WIND_GUST', 'WEATHER_WIND_GUST')
self.config.set('WeatherRadio', 'WEATHER_WIND_SPEED', 'WEATHER_WIND_SPEED')
self.config.set('WeatherRadio', 'WEATHER_WIND_DIRECTION', 'WEATHER_WIND_DIRECTION')
self.config.set('WeatherRadio', 'WEATHER_RAIN_DROPS', 'WEATHER_RAIN_DROPS')
self.config.set('WeatherRadio', 'WEATHER_RAIN_VOLUME', 'WEATHER_RAIN_VOLUME')
self.config.set('WeatherRadio', 'WEATHER_WETNESS', 'WEATHER_WETNESS')
# read config files
for file in ['/etc/weatherradio.ini',
'/usr/share/weatherradio/weatherradio.ini']:
self.config.read(file)
def getDevices(self):
"""Delivers the section names of devices"""
return [x for x in self.config.sections() if x.startswith('Device')]
So still no info on the web page .....
but why this action doesn't work
chris@tinkerboard:~$ cd /usr/share/weatherradio
chris@tinkerboard:/usr/share/weatherradio$ ./bin/wr_rrd_create.py
Traceback (most recent call last):
File "./bin/wr_rrd_create.py", line 44, in <module>
ret = rrdtool.create(rrd_args,
rrdtool.OperationalError: Cannot create temporary file
chris@tinkerboard:/usr/share/weatherradio$
Okay,
I'll try,
and what you changed here, I put the same thing
self.config.set('WeatherRadio', 'INDISERVER', 'localhost')
self.config.set('WeatherRadio', 'INDIPORT', '7624')
Read More...
Thank you,
what a bummer, to be fooled by copy/paste...
I've moved on but I'm stuck here now
chris@tinkerboard:~$ cd /usr/share/weatherradio
chris@tinkerboard:/usr/share/weatherradio$ ./bin/wr_rrd_create.py
Traceback (most recent call last):
File "./bin/wr_rrd_create.py", line 44, in <module>
ret = rrdtool.create(rrd_args,
rrdtool.OperationalError: Cannot create temporary file
chris@tinkerboard:/usr/share/weatherradio$
# 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', '192.168.1.100')#0.0.0.0 [color=red]I have modified here[/color]
self.config.set('WeatherRadio', 'INDIPORT', '/dev/ttyACM0')#8624 [color=red]I have modified here[/color]
Hello
good, so I advance gently. Maitenant I try to install the server for weatherradio, I follow the explanation on the doc. But I'm stuck with a command line I put it to you
chris@tinkerboard:/etc/systemd/system$ sudo systemctl enable indi-weatherradio.service
[sudo] Mot de passe de chris :
Failed to enable unit: "multi-user.targe" is not a valid unit name.
Hello
I'm having a problem with the script, but I checked the rrdtool and it is normally installed
nafa@NAFABox:/usr/share/weatherradio$ sudo apt-get install python-rrdtool
[sudo] Mot de passe de nafa :
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
python-rrdtool est déjà la version la plus récente (1.7.0-1build1).
Les paquets suivants ont été installés automatiquement et ne sont plus nécessaires :
indi-aagcloudwatcher indi-nexstarevo
Veuillez utiliser « sudo apt autoremove » pour les supprimer.
0 mis à jour, 0 nouvellement installés, 0 à enlever et 16 non mis à jour.
nafa@NAFABox:/usr/share/weatherradio$ ./bin/wr_rrd_create.py
Traceback (most recent call last):
File "./bin/wr_rrd_create.py", line 20, in <module>
import rrdtool
ModuleNotFoundError: No module named 'rrdtool'
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 154, in apport_excepthook
os.O_WRONLY | os.O_CREAT | os.O_EXCL, 0o640), 'wb') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/var/crash/_usr_share_weatherradio_bin_wr_rrd_create.py.1000.crash'
Original exception was:
Traceback (most recent call last):
File "./bin/wr_rrd_create.py", line 20, in <module>
import rrdtool
ModuleNotFoundError: No module named 'rrdtool'
nafa@NAFABox:/usr/share/weatherradio$
Hello, I always have problems to install the web page
who has an idea
afa@NAFABox:~$ pip3 install simplejson utidylib pathlib ffmpeg-python
Collecting simplejson
Using cached https://files.pythonhosted.org/packages/7a/47/c7cc3d4ed15f09917838a2fb4e1759eafb6d2f37ebf7043af984d8b36cf7/simplejson-3.17.6.tar.gz
Collecting utidylib
Downloading https://files.pythonhosted.org/packages/8e/24/adf05607f7dcb3fd8a5dd9162e3cad0e37a5deb76458bd7cc8882bbed15a/uTidylib-0.8-py3-none-any.whl
Collecting pathlib
Using cached https://files.pythonhosted.org/packages/ac/aa/9b065a76b9af472437a0059f77e8f962fe350438b927cb80184c32f075eb/pathlib-1.0.1.tar.gz
Collecting ffmpeg-python
Downloading https://files.pythonhosted.org/packages/d7/0c/56be52741f75bad4dc6555991fabd2e07b432d333da82c11ad701123888a/ffmpeg_python-0.2.0-py3-none-any.whl
Collecting future (from ffmpeg-python)
Downloading https://files.pythonhosted.org/packages/45/0b/38b06fd9b92dc2b68d58b75f900e97884c45bedd2ff83203d933cf5851c9/future-0.18.2.tar.gz (829kB)
100% |████████████████████████████████| 829kB 540kB/s
Building wheels for collected packages: simplejson, pathlib, future
Running setup.py bdist_wheel for simplejson ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-01n8yf0v/simplejson/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpvhi_h9hfpip-wheel- --python-tag cp36:
usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: -c --help [cmd1 cmd2 ...]
or: -c --help-commands
or: -c cmd --help
error: invalid command 'bdist_wheel'
----------------------------------------
Failed building wheel for simplejson
Running setup.py clean for simplejson
Running setup.py bdist_wheel for pathlib ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-01n8yf0v/pathlib/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmp9zg4zbvrpip-wheel- --python-tag cp36:
usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: -c --help [cmd1 cmd2 ...]
or: -c --help-commands
or: -c cmd --help
error: invalid command 'bdist_wheel'
----------------------------------------
Failed building wheel for pathlib
Running setup.py clean for pathlib
Running setup.py bdist_wheel for future ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-01n8yf0v/future/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmp77rwl48jpip-wheel- --python-tag cp36:
usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: -c --help [cmd1 cmd2 ...]
or: -c --help-commands
or: -c cmd --help
error: invalid command 'bdist_wheel'
----------------------------------------
Failed building wheel for future
Running setup.py clean for future
Failed to build simplejson pathlib future
Installing collected packages: simplejson, utidylib, pathlib, future, ffmpeg-python
Running setup.py install for simplejson ... done
Running setup.py install for pathlib ... done
Running setup.py install for future ... done
Successfully installed ffmpeg-python-0.2.0 future-0.18.2 pathlib-1.0.1 simplejson-3.17.6 utidylib-0.8
nafa@NAFABox:~$