Code Monkey home page Code Monkey logo

Comments (5)

sbf- avatar sbf- commented on September 27, 2024

What is the output of crontab -l

from sbfspot.

lebeck69 avatar lebeck69 commented on September 27, 2024

I went a bit further ..

I see the CRON job running
grep CRON /var/log/syslog
Sep 11 17:20:01 SMApi CRON[2126]: (lebeck) CMD (/usr/local/bin/sbfspot.3/daydata)
Sep 11 17:20:01 SMApi CRON[2125]: (CRON) info (No MTA installed, discarding output)

I completely new to this .. but to me the CRON and the command './SBFspot -v5 -mqtt' seem to be executed with my user ?!

hahah thx sbf ;)
I was writing the answer when you replyed

crontab -l
'## SBFspot
*/5 6-22 * * * /usr/local/bin/sbfspot.3/daydata
55 05 * * * /usr/local/bin/sbfspot.3/monthdata

I've installed postfix and I see a error.. I see this
/usr/local/bin/sbfspot.3/daydata: line 3: /MyPlant_20230911.log: No such file or directory
/usr/local/bin/sbfspot.3/daydata: line 4: $log: ambiguous redirect

that's true that the file doesn't exist.. but I'm suprised that there is no path in the error message ?!

this is what exist :
lebeck@SMApi:/mnt/usb/log/sbfspot.3 $ ls
MyPlant_20230909.log
lebeck@SMApi:/mnt/usb/log/sbfspot.3 $ cd ..
lebeck@SMApi:/mnt/usb/log $ ls -l
total 8
drwxr-xr-x 2 lebeck lebeck 4096 Sep 11 09:24 sbfspot.3
drwxr-xr-x 2 lebeck lebeck 4096 Sep 9 18:23 'sbfspot.3 '

don't really know why i have this folder with a space..
I've clean both with sudo rmdir and recreate the good one.

I think i got this !!
i probably put a space somewhere in the installation
it was in the 2 jobs daydata and monthdata

I've just updated.
Fingers crossed

from sbfspot.

lebeck69 avatar lebeck69 commented on September 27, 2024

Problem was a folder with space at the end ..
Took me some time because I aint a linux expert.

Still have to do the HA integration..
seem that auto discovery isn't working
if you have any tip.. I'm listening :)

from sbfspot.

lebeck69 avatar lebeck69 commented on September 27, 2024

I have 2 inverters and MIS enable.
not sure to be correct but mqtt topic should be unique ?!

I see the MQTT send for each of my inverters but with same topic ..

MQTT: Publishing (homeassistant/sbfspot_Inc/sbfspot_{serial}) ..
MQTT: Publishing (homeassistant/sbfspot_Inc/sbfspot_{serial}) ..

{serial} is not replace per inverter (HA addon way to do it)
I've also tryed {InvSerial} (tryed to reuse what was in the sbfspot config)

Is that not the correct way to do it ?

I also haven't find if autodiscovery is working ?

from sbfspot.

sbf- avatar sbf- commented on September 27, 2024

(homeassistant/sbfspot_Inc/sbfspot_{serial})

Should be ok. This is the message in the console. The real MQTT topic should have the serial replaced.

I also haven't found if autodiscovery is working ?

I don´t know about that... not a HA user

from sbfspot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.