In the last few days my meteohub has started exhibiting some unusual behaviour. The web UI fails to load, a custom rapid-fire plug-in script stalls, and I cannot access through SSH. FTP uploads from Meteohub to my web server continue to happen as expected. To remedy the problem I end up having to pull the plug which I hate doing as sooner or later it will result in data corruption issues. Two things changed on or around the time this behaviour started. First, my trusty old router bit the dust and I had to install a new one which seems to be working perfectly and as expected in all regards. Second, I loaded a new plugin script to obtain data from a local web-server (python based) in order for meteohub to log and process. The script appears to be working as expected. Does anyone out there have any thoughts as to what may be going on? Newly installed script is below. THANKS!
Code: Select all
#! /bin/sh
#
while :
do
# pull data from python server
result=$(wget -qO- http://192.168.1.88:8000/data_node2.txt)
echo "$result" | head -n 1
# make sure output gets flushed
sync
# wait 5 seconds for next read
sleep 60
done