Closed mcpaton closed 1 year ago
Does 123solar.php runs ? Don't you have a /var/lock/LCK..USB file stuck ? What returns ls -al /dev/shm/ ? In debug mode, there is no errror log ?
I'm not sure how to tell if 123solar.php runs? Or how to tell if the usb file is stuck.
bash-4.4# ls -al /dev/shm total 8 drwxrwxrwt 2 root root 80 Mar 5 07:50 . drwxr-xr-x 14 root root 21480 Mar 5 06:02 .. -rw-r--r-- 1 nginx www-data 256 Mar 5 07:51 123s_LIVEMEMORY.json -rw-r--r-- 1 nginx www-data 226 Mar 5 07:51 123s_MEMORY.json
I have restarted in debug mode:
Memory (/dev/shm/123s_MEMORY.json): Array ( [awake] => [First1] => 0 [pmotd1] => 0 [pmotdt1] => 1677992549 [pmotdmulti] => 0 [pmotdtmulti] => 0 [status] => 123Solar ZzzZ [invtstat1] => [5minflag1] => [msgq1] => 0 [AWt1] => 1677992549 [AWriso1] => 0 [AWileak1] => 0 [peakotd1] => 0 [peakoat1] => 0 ) Live memory (/dev/shm/123s_LIVEMEMORY.json) Array ( [SDTE1] => 1677999001 [I1V1] => 0 [I1A1] => 0 [I1P1] => 0 [I2V1] => 0 [I2A1] => 0 [I2P1] => 0 [I3V1] => 0 [I3A1] => 0 [I3P1] => 0 [I4V1] => 0 [I4A1] => 0 [I4P1] => 0 [G1V1] => 0 [G1A1] => 0 [G1P1] => 0 [G2V1] => 0 [G2A1] => 0 [G2P1] => 0 [G3V1] => 0 [G3A1] => 0 [G3P1] => 0 [FRQ1] => 0 [EFF1] => 0 [INVT1] => 0 [BOOT1] => 0 [SSR1] => 0 )
Which shows no data. But the Test Communication shows this data:
aurora -a 2 -c -T -Y3 -d0 -e /dev/ttyUSB0 Arrays values I1V : 301.955658 V | I1A : 0.646091 A | I1P : 195.090897 W I2V : 191.440048 V | I2A : 0.650119 A | I2P : 124.458862 W I3V : V | I3A : A | I3P : W I4V : V | I4A : A | I4P : W Grid values G1V : 241.213562 V | G1A : 1.353939 A | G1P : 311.210297 W G2V : V | G2A : A | G2P : W G3V : V | G3A : A | G3P : W Inverter values FRQ : 49.986004 Hz | EFF : 97.390251 % | INVT : 41.979527 ° BOOT : 40.722416 ° | KWHT : 61247.475 kWh | Sensor : W/m²
I see on the help/debig page I have a red X next to /dev/shm is -NOT- OK ok to write but a green tick next to OK to write. But this was the case even when it was working OK.
I see that [awake] is not => 1. Can you check your system date/timezone ? Can you return "df -h |grep /dev/shm" ?
Date and time is correct (Australia/Brisbane)
df -h |grep /dev/shm shm 64.0M 8.0K 64.0M 0% /dev/shm
is it the same TimeZone in Main configuration ? 123s is sleeping [status] => 123Solar ZzzZ
That’s where I checked the Timezone. Is there somewhere else to check? The solar system is awake at the moment as it’s daytime.
From: Jean-Marc Louviaux @.> Sent: Sunday, March 5, 2023 5:07:10 PM To: jeanmarc77/123solar @.> Cc: mcpaton @.>; Author @.> Subject: Re: [jeanmarc77/123solar] Test Communication works, but 123Solar not logging any data (Issue #44)
is it the same TimeZone in Main configuration ? 123s is sleeping [status] => 123Solar ZzzZ
— Reply to this email directly, view it on GitHubhttps://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fjeanmarc77%2F123solar%2Fissues%2F44%23issuecomment-1455009529&data=05%7C01%7C%7C67425a63c068486a8f5908db1d483e4f%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638135968349781250%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=sAsKcwPxZmq%2B%2F4fVRHLSgt5wrMIu707Q4d4rQCvmFQA%3D&reserved=0, or unsubscribehttps://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABMNWF5APEA6FG5SKDUEA7DW2Q3R5ANCNFSM6AAAAAAVP6MG7I&data=05%7C01%7C%7C67425a63c068486a8f5908db1d483e4f%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638135968349781250%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=z6CCWGeYFlTUkNVVX7mbs4C2cYTgX32ttZ0Ki3aGA6I%3D&reserved=0. You are receiving this because you authored the thread.Message ID: @.***>
on your system check "timedatectl" If not correct "timedatectl set-timezone Australia/Brisbane"
Ok the Timezone was wrong. I had to use a different command but now it is showing the correct date and time it is now working. Thanks for your assistance!
From: Jean-Marc Louviaux @.> Sent: Sunday, March 5, 2023 5:15:14 PM To: jeanmarc77/123solar @.> Cc: mcpaton @.>; Author @.> Subject: Re: [jeanmarc77/123solar] Test Communication works, but 123Solar not logging any data (Issue #44)
on your system check "timedatectl" If not correct "timedatectl set-timezone Australia/Brisbane"
— Reply to this email directly, view it on GitHubhttps://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fjeanmarc77%2F123solar%2Fissues%2F44%23issuecomment-1455010797&data=05%7C01%7C%7C4c0b1812131a43cc811608db1d495f45%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638135973196186150%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=pEpGhOkpn6WbnXN%2Bpqc36ei0wRlYVjsWRdCEQwCw0ho%3D&reserved=0, or unsubscribehttps://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABMNWF6BSBGLUQNVOXQUJTLW2Q4QFANCNFSM6AAAAAAVP6MG7I&data=05%7C01%7C%7C4c0b1812131a43cc811608db1d495f45%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638135973196186150%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=%2BrjVJ8nZnqbLfbtcjUcRPo0Uyw4jkkejmyfJja1LzUg%3D&reserved=0. You are receiving this because you authored the thread.Message ID: @.***>
I had 123Solar working nicely on my QNAP NAS. On Feb 22 it seemed to stop working (may have been related to reboot of NAS). The ttyUSB0 has not changed, and when I use the Test Communication button in the Admin area, it returns correct data from the Aurora Inverter (I see this update in realtime when I refresh the page). However when I run the 123Solar service, the web pages are stuck on Feb 22 and do not show any live data.
What do I need to do to get the main data to work?