updating from strect to buster

Talks about metering
Post Reply
megamarco83
Posts: 104
Joined: Tue Apr 14, 2015 9:25 am

updating from strect to buster

Post by megamarco83 » Mon Feb 24, 2020 11:14 pm

hi, i'm on stretch and today i try to update to buster.
i'm using metern with two sdm120, one for production and one for consumption.

to update i follow this guide:
http://baddotrobot.com/blog/2019/08/29/ ... to-buster/

all done good, but metern not show any value.
if i go to debut, i have all green

and this inside box error:

Code: Select all

24/02/2020 22:51:08	Starting meterN debug (1391)

more: stat of /dev/shm/metern1.txt failed: No such file or directory
Traceback (most recent call last):
  File "/usr/local/bin/ds18b20.py", line 3, in <module>
    from w1thermsensor import W1ThermSensor
  File "build/bdist.linux-armv7l/egg/w1thermsensor/__init__.py", line 8, in <module>
  File "build/bdist.linux-armv7l/egg/w1thermsensor/core.py", line 352, in <module>
  File "build/bdist.linux-armv7l/egg/w1thermsensor/core.py", line 346, in load_kernel_modules
w1thermsensor.errors.KernelModuleLoadError: Cannot load w1 therm kernel modules
cat: /dev/shm/boiler12.txt: No such file or directory
cat: /dev/shm/metern13.txt: No such file or directory
cat: /dev/shm/metern14.txt: No such file or directory
cat: /dev/shm/metern1.txt: No such file or directory
cat: /dev/shm/metern1.txt: No such file or directory
cat: /run/shm/metern1.txt: No such file or directory
cat: /dev/shm/metern1.txt: No such file or directory
cat: /dev/shm/boiler12.txt: No such file or directory
more: stat of /dev/shm/metern1.txt failed: No such file or directory
Traceback (most recent call last):
  File "/usr/local/bin/ds18b20.py", line 3, in <module>
    from w1thermsensor import W1ThermSensor
  File "build/bdist.linux-armv7l/egg/w1thermsensor/__init__.py", line 8, in <module>
  File "build/bdist.linux-armv7l/egg/w1thermsensor/core.py", line 352, in <module>
  File "build/bdist.linux-armv7l/egg/w1thermsensor/core.py", line 346, in load_kernel_modules
w1thermsensor.errors.KernelModuleLoadError: Cannot load w1 therm kernel modules
cat: /dev/shm/boiler12.txt: No such file or directory
cat: /dev/shm/metern13.txt: No such file or directory
cat: /dev/shm/metern14.txt: No such file or directory
cat: /dev/shm/metern1.txt: No such file or directory
cat: /dev/shm/metern1.txt: No such file or directory
cat: /run/shm/metern1.txt: No such file or directory
cat: /dev/shm/metern1.txt: No such file or directory
cat: /dev/shm/boiler12.txt: No such file or directory
more: stat of /dev/shm/metern1.txt failed: No such file or directory
Traceback (most recent call last):
  File "/usr/local/bin/ds18b20.py", line 3, in <module>
    from w1thermsensor import W1ThermSensor
  File "build/bdist.linux-armv7l/egg/w1thermsensor/__init__.py", line 8, in <module>
  File "build/bdist.linux-armv7l/egg/w1thermsensor/core.py", line 352, in <module>
  File "build/bdist.lin24/02/2020 22:57:25	Starting meterN on boot debug (747)

more: stat of /dev/shm/metern1.txt failed: No such file or directory
cat: /dev/shm/boiler12.txt: No such file or directory
cat: /dev/shm/metern13.txt: No such file or directory
cat: /dev/shm/metern14.txt: No such file or directory

if i go to terminal side:
pi@raspberrypi:~ $ poolerconsumi 1 energy
PHP Warning: file_put_contents(/dev/shm/consumi1.txt): failed to open stream: Permission denied in /var/www/comapps/poolerconsumi.php on line 77
1(44275373*Wh)



pi@raspberrypi:~ $ poolerconsumi 1 power
1(1232*W)

so value seam to be taken, but are always same numbers, also for power.
i tryed to switch on some load, and the value of power is always the same



so i try this:

pi@raspberrypi:~/SDM120C $ ./sdm120c -z 20 -P N -b 9600 -j20 -w20 /dev/ttyUSB1
20200224-23:13:45.500676: ./sdm120c(11649) Problem locking serial device /dev/ttyUSB1.
20200224-23:13:45.500919: ./sdm120c(11649) Unable to get lock on serial /dev/ttyUSB1 for 11649 in 20s: still locked by 1954.
20200224-23:13:45.501526: ./sdm120c(11649) Try a greater -w value (eg -w22).



pi@raspberrypi:~/SDM120C $ pooler485 1 9600 /dev/ttyUSB1
/usr/local/bin/pooler485: riga 43: /dev/shm/metern1.txt: Permesso negato
/usr/local/bin/pooler485: riga 43: /dev/shm/metern1.txt: Permesso negato
/usr/local/bin/pooler485: riga 43: /dev/shm/metern1.txt: Permesso negato


what is very strange, is that sometime, just for a white, the value of energy will diplayed, in that time also file inside /run/shm/ will created .
but the value of energy appear just for a while and then goes to zero and i receive the same error message if i ask from shell the sdm

Post Reply

Who is online

Users browsing this forum: wifi75 and 1 guest