I just find strange behaviour. I'm not an expert in DB engines but it looks wired.
Inverters table has the same definition for Sqlite and MySQL.
CREATE Table Inverters (
Serial int(4) NOT NULL,
Name varchar(32),
Type varchar(32),
SW_Version varchar(32),
TimeStamp datetime,
TotalPac int,
EToday int(8),
ETotal int(8),
OperatingTime double,
FeedInTime double,
Status varchar(10),
GridRelay varchar(10),
Temperature float,
PRIMARY KEY (Serial)
);
However for Sqlite in my DB I have for example this values for EToday and ETotal
1.885|50.353
0.177|3.732
0.172|6.233
What is quite strange as it should be int(8). Issue is that MySQL keep this as real integer like below
1|50
0|3
0|6
I had to change data type to float and now MySql store data properly.
In SpotData all is fine because there are Wh and can be kept as int but in Inverters we have kWh.
Anyway there is Segmentation fault in build for mysql v3.2 fro sure after data upload to DB.
Comments: Because ... emm because, I have powerbroker here and all root activities have to be reviewed by independent log review team (my wife) and compare with change management tickets. That have to be approved by independent change management team (my daughter) before login to Production environment. That is why I can use root. OK that was a joke :) Seriously, security is not a reason. Security is a solution after risk analysis. I did my risk analysis, so on my Virtual sandbox I play with all tools that I want to test on one user. Btw Pi raspberry have default user with sudo allowed without any password. What is the same situation. Anyway I checked how SBFspot works on normal user and indeed works better... what is quite strange. So I promise that when I will find final solution I will use SBFspot on standard non-root user. But I still can't decide where to put Synology NAS, OpenWrt router, or Raspbbery PI... And as we have so friendly and philosophic discussion (to be root or not to be) Did You consider a much simpler tool that can be used as command line tool? I know that today I can switch off sql and csv export and just parse output from program. But it could be nice to have tool that just ask one inverter for current status. Currently it takes 7.2 sec to finish SBFspot on my Multigate.
Inverters table has the same definition for Sqlite and MySQL.
CREATE Table Inverters (
Serial int(4) NOT NULL,
Name varchar(32),
Type varchar(32),
SW_Version varchar(32),
TimeStamp datetime,
TotalPac int,
EToday int(8),
ETotal int(8),
OperatingTime double,
FeedInTime double,
Status varchar(10),
GridRelay varchar(10),
Temperature float,
PRIMARY KEY (Serial)
);
However for Sqlite in my DB I have for example this values for EToday and ETotal
1.885|50.353
0.177|3.732
0.172|6.233
What is quite strange as it should be int(8). Issue is that MySQL keep this as real integer like below
1|50
0|3
0|6
I had to change data type to float and now MySql store data properly.
In SpotData all is fine because there are Wh and can be kept as int but in Inverters we have kWh.
Anyway there is Segmentation fault in build for mysql v3.2 fro sure after data upload to DB.
Comments: Because ... emm because, I have powerbroker here and all root activities have to be reviewed by independent log review team (my wife) and compare with change management tickets. That have to be approved by independent change management team (my daughter) before login to Production environment. That is why I can use root. OK that was a joke :) Seriously, security is not a reason. Security is a solution after risk analysis. I did my risk analysis, so on my Virtual sandbox I play with all tools that I want to test on one user. Btw Pi raspberry have default user with sudo allowed without any password. What is the same situation. Anyway I checked how SBFspot works on normal user and indeed works better... what is quite strange. So I promise that when I will find final solution I will use SBFspot on standard non-root user. But I still can't decide where to put Synology NAS, OpenWrt router, or Raspbbery PI... And as we have so friendly and philosophic discussion (to be root or not to be) Did You consider a much simpler tool that can be used as command line tool? I know that today I can switch off sql and csv export and just parse output from program. But it could be nice to have tool that just ask one inverter for current status. Currently it takes 7.2 sec to finish SBFspot on my Multigate.