solved! my mistake! TERM environment variable not set. Metern on buster

Talks about metering
metus88
Posts: 7
Joined: Tue Nov 05, 2019 3:14 pm

Re: TERM environment variable not set. Metern on buster

Post by metus88 » Wed Nov 06, 2019 4:23 pm

SOLVED

I am very ashamed to have wasted your time!

The problems were a lot of symbolic link wrongs!
When I installed metern I copied all files inside /var/www/comapps
but you also make a symbolic link in /usr/local/bin/

My mistake was to make same mistake like 2 or 3 file was like:

Code: Select all

ln -s /var/www/comapps/pooler.php /usr/local/bin/pooler
ln -s /var/www/comapps/testcom.php /usr/local/bin/reqsubmet
ln -s /var/www/comapps/testcom.php /usr/local/bin/virtmeter
....
How you can see i created a symbolic link to wrong files!!!

I realized that because I'm very lucky. However I spend 3 days on that!

I apologize for stealing your time

And a big thanks to jeanmarc!

jeanmarc
Posts: 1858
Joined: Thu Aug 29, 2013 7:16 am

Re: solved! my mistake! TERM environment variable not set. Metern on buster

Post by jeanmarc » Wed Nov 06, 2019 4:50 pm

No worries, glad you find a solution ;)

wifi75
Posts: 13
Joined: Tue Aug 27, 2019 2:26 pm

Re: solved! my mistake! TERM environment variable not set. Metern on buster

Post by wifi75 » Thu Nov 21, 2019 4:17 pm

metus88 wrote:
Tue Nov 05, 2019 3:41 pm
Good day,
I migrated all my programs (123solar + metern + home assistant + ramlog + webserver apache + ....) from a raspberry pi 3 raspian stretch lite to a raspberry pi 3 raspian buster lite.
99% are ok.
The only problem that i have is with metern.
Image

In the log file i read:

Code: Select all

TERM environment variable not set.
If I search in all the files inside var/www/metern the word TERM with notpad++ I don't find a result.
If I check on terminal:

Code: Select all

echo $TERM 
I receive

Code: Select all

xterm
I checked in /var/www/metern/config/config_main.php and I can read

Code: Select all

$DISTRO='raspbian_ARM';
I tryed to modify debian but with not succeed.



Inside the folder /dev/shm I can found all the files and all of them are with permission 777. The file with all the data is metern2.txt with all the information that they are updated in real time from a smd630 modbus.
BUT the 2 files: mN_ILIVEMEMORY.json mN_LIVEMEMORY.json are null or 0 values.
So in the metern GUI are not able to read any data. [exluding history data]

Also in the GUI admin tab -> Meter(s)&sensor(s) if I push the button "Test command" (for both "Command" and "Live command") I recived

Code: Select all

TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.TERM environment variable not set.1(3343868*Wh) is not valid, the correct format is 1(1234.5*Wh)
Any idea how I can fix the problem? Where I can check/look?

Thanks for any advice
hello sir it is possible send MeterN information to Hassio ?
How? :?: :?:

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest