Hi!
There's a updated version of FOSHKplugin v0.08 available.
Since last public Beta there're some minor changes but a new key feature:
direct support of InfluxDB!
Running a local InfluxDB-server and locally installed Grafana you may create a fine dashboard yourself. Easily!
You may arrange all graphs or compare any value with others and you are EVEN able to include sensor values from other systems that provide data according to InfluxDB in your considerations.
This makes it very easy to compare different weather stations or sensors of different types.
For the test (and because I've always wanted to evaluate the quality of the
TFA shield) I compared the TFA weather protection against the original WH65
here as metric or
here in imperial.
In summary: The TFA-Shield may protect against rain and wind. In direct sunlight, however, it performs significantly worse (5K!) than the shield built into the WH65.
Adding another sensor to this diagram is just a few clicks!
The chronological sequence can also be changed very easily with a click. So especially for people who would like to compare the various anemometers or temperature sensors with each other, InfluxDB together with Grafana or Chronograf is an extremely helpful tool. And FOSHKplugin can provide this data to the database.
Among the minor changes:
There's a new switch Logging\LOG_ENABLE to enable/disable the complete logging. The STRING output function did not work quite as expected. getvalue also apparently had problems finding keys from the other measurement system. I have now used the revision immediately to give all requests (where it makes sense) the possibility to also include minmax or status as an option and to change the separator via "separator=". The bool option is also new to output the Boolean values 0/1 as False/True.
A few examples to help you developing ideas about what is possible (replace IP address and port with your values):
get all values as JSON in metric system with True/False as state:
http://192.168.15.237:8080/JSON&minmax&boolstatus&units=m
get a string output for all metric values with a separator " - " between fields
http://192.168.15.237:8080/STRING&minmax&boolstatus&units=m&separator=%20-%20
same as UDP-output but for imperial values:
http://192.168.15.237:8080/UDP&minmax&boolstatus&units=e&separator=%20-%20
download the status only and save it locally with linefeed as status.txt
wget http://192.168.15.237:8080/FOSHKplugin/status/bool/separator=%0A -O status.txt
create a plain text file with all known data (each per line) from Windows cmd:
curl http://192.168.15.237:8080/FOSHKplugin?boolstatus^&minmax^&bool^&units=e^&separator=%0A -o complete-e.txt
just get the current state of todays (so far) max. temperature of sensor #4
curl http://192.168.15.237:8080/getvalue?key=temp4c_max -o temp4c_max.txt
To upgrade:
Change via ssh to the directory in which FOSHKplugin is running - according to my recommendations, it could be /opt/FOSHKplugin/.
If you run FOSHKplugin as root, you can do the following commands without "sudo -u username" - if you run FOSHKplugin in a certain user context, the specification of that user would be important so that the permissions are correct:
sudo -u username ./generic-FOSHKplugin-install.sh -upgrade generic-FOSHKplugin-0.0.8Beta.zip
sudo -u username ./generic-FOSHKplugin-install.sh -repair
The "repair" is important this time, because FOSHKplugin has to install a new package via apt/pip to get InfluxDB support.
Let me know if there're any problems or you need some explanations of the new functions. Most things should already be described on the
website.
For first time (or parallel) installation just use this
link.
LoxBerry users should download and install this
version the usual LoxBerry-installation-way instead.
Have fun!
Regards, Oliver