Read the statement by Michael Teeuw here.
MMM-SunnyPortal Solar Module
-
@sdetweil said in MMM-SunnyPortal Solar Module:
developers window
did you mean this:
pi@raspberrypi:~ $ cd MagicMirror
pi@raspberrypi:~/MagicMirror $ npm startmagicmirror@2.11.0 start /home/pi/MagicMirror
DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js[2020-05-01 07:49:55.511] [LOG] Starting MagicMirror: v2.11.0
[2020-05-01 07:49:55.522] [LOG] Loading config …
[2020-05-01 07:49:55.530] [LOG] Loading module helpers …
[2020-05-01 07:49:55.534] [LOG] No helper found for module: alert.
[2020-05-01 07:49:55.614] [LOG] Initializing new module helper …
[2020-05-01 07:49:55.615] [LOG] Module helper loaded: updatenotification
[2020-05-01 07:49:55.616] [LOG] No helper found for module: clock.
[2020-05-01 07:49:55.619] [LOG] Initializing new module helper …
[2020-05-01 07:49:55.620] [LOG] Module helper loaded: mmm-udr
[2020-05-01 07:49:56.243] [LOG] Initializing new module helper …
[2020-05-01 07:49:56.244] [LOG] Module helper loaded: calendar
[2020-05-01 07:49:56.770] [LOG] Initializing new module helper …
[2020-05-01 07:49:56.771] [LOG] Module helper loaded: MMM-DWD-WarnWeather
[2020-05-01 07:49:56.772] [LOG] No helper found for module: currentweather.
[2020-05-01 07:49:56.773] [LOG] No helper found for module: weatherforecast.
[2020-05-01 07:49:56.879] [LOG] Initializing new module helper …
[2020-05-01 07:49:56.880] [LOG] Module helper loaded: MMM-Fuel
[2020-05-01 07:49:57.384] [LOG] Initializing new module helper …
[2020-05-01 07:49:57.385] [LOG] Module helper loaded: MMM-SunnyPortal
[2020-05-01 07:49:57.385] [LOG] All module helpers loaded.
[2020-05-01 07:49:57.574] [LOG] Starting server on port 8080 …
[2020-05-01 07:49:57.596] [LOG] Server started …
[2020-05-01 07:49:57.597] [LOG] Connecting socket for: updatenotification
[2020-05-01 07:49:57.599] [LOG] Connecting socket for: mmm-udr
[2020-05-01 07:49:57.599] [LOG] Starting node_helper
[2020-05-01 07:49:57.600] [LOG] Connecting socket for: calendar
[2020-05-01 07:49:57.601] [LOG] Starting node helper for: calendar
[2020-05-01 07:49:57.602] [LOG] Connecting socket for: MMM-DWD-WarnWeather
[2020-05-01 07:49:57.603] [LOG] MMM-DWD-WarnWeather helper started…
[2020-05-01 07:49:57.604] [LOG] Connecting socket for: MMM-Fuel
[2020-05-01 07:49:57.605] [LOG] Starting module helper: MMM-Fuel
[2020-05-01 07:49:57.606] [LOG] Connecting socket for: MMM-SunnyPortal
[2020-05-01 07:49:57.607] [LOG] Starting node helper for: MMM-SunnyPortal
[2020-05-01 07:49:57.607] [LOG] Sockets connected & modules started …
[2020-05-01 07:49:57.756] [LOG] Launching application.
[2020-05-01 07:50:00.854] [LOG] Create new calendar fetcher for url: hlaalalalallalalalalalalalalaic.ics - Interval: 600000
[2020-05-01 07:50:00.882] [LOG] SocketNotification START_SUNNYPORTAL received for the first time…setting updateInterval to 900000ms
[2020-05-01 07:50:01.996] [LOG] Cookie Value: ASP.NET_SessionId=pgoxqxmetvbxoywf5crvnphn; BIGipServerPool_P_SunnyPortal=3036981440.20480.0000
[2020-05-01 07:50:01.998] [LOG] Fetched VIEWSTATE value: zKxBKzNe9/MUZXDG/J0fVzXT0AaZuZ8OXFPZDiiWglhEbUNEp9P2eU0cnFt9KUPWXhzBvXVwz1rJw2pSDRYSoTW/ePG5Jh3o1YQRWC54x2sIfCeOpzkpGZes17AQ4yA6zWnqeMvnMBUYekiXE/sM7ntyiGp2pbBD57y6BPLul6TEiw/kzfFsv+llTk/W6enZs/b+fdFirFyUOnieTC37OaOMEwbl4Q9ktu2xJoqi5OtExyBls8ipsWdzpaeFoKi2ZXirMjHwGUUT8FZp4Khdap/0uSJBcAfnZjRuWh9p80uXBaaVdnP3v/lERWEDhXiGAtq9gviWKQqivo3Lw1wULqKQChnqOAyyXdykIRlTh6LTUX9g3v88tuaZlUOCcBgbuxxzXpk5jrVpm9ffGyr1+5pTFk4s7qnBIHNMfmFk+wKSEMz4d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yQzmsOTd6lsDL5xVZEFRMyI9YKQkSH+tgeuSJU3fWKdLJ+ZUiDw1RAlxS1FcLeJJmtsosQATD0Y0TOLu7/oRxI7vBaBqYeH4KuqRsGui6htZ/ttd5wNwdJhR30NRQRlz/VRQL9fKqMLKZec1nr3GMSj+VP7spDvGRvISIfPeSlx4phODsOYMOJ2sCQQnXpDcjz+IPQgR59C/RqIPQtxaj5SbQXSefpAisYfvOyjOMt6/k9McmVP4K9HbUhi9yiG6VLK5wPzzIiFTobQWaTGvQRuGJD7dQccZ70DG4teeYxdxdlNHSu5vcvQ3bnpThWS3yNQ2W7RqFxcKBGWbMQocOrIZxxHZoMDdb1OaWreEnEi5vay9vScL2Au0QjHbbuFDgcTcA+g+q+PYOYqNWyZXuz8FgrujTJEs8PFhqBodN8msIm3wxtqhQjqpkq2GeqjGt0obH/4bgFd8VIyZZw1MGqVAOyJXFHLF9yQN9KGxxRhflukR+1vcEycdMyD8ljAqq1rQFqLSsTxzLxQK7UNIv4oiqtFA8C4DGQwEwHeEjgxuhNmLjDWhqgBAnV5R+2pmoSGSRphSvM0JiBTkbFwQN5lWKUAMAzG4Fh30IulCQgfLyay2y18cdVnX7F8RqW
[2020-05-01 07:50:01.999] [LOG] Fetched VIEWSTATEGENERATOR value: 4E24AF74
[2020-05-01 07:50:02.063] [LOG] Cookie Value: ASP.NET_SessionId=ysbfmau4w0e3qicudfwhcvn2; BIGipServerPool_P_SunnyPortal=3053758656.20480.0000
[2020-05-01 07:50:02.064] [LOG] Fetched VIEWSTATE value: SPU2vIohhKpzILTSf8NEacxSOREmXmrog5j9oACGJ/d7zRTHyS5CUIDQvCmrLatyO5mjCW7aNKFtQZAU/CZoeuRe+61Gy/a4/ZuMu0gdAY+OeNAsSk0ZpYQNLeodFj9Q1S6QK1hMs9ihTGUZbNbpskjj1YrKEWHv6vw8ggQXzcAWZvLQFFJv0wn0q0VMDO/FBQAPq7/HyZFWxWdIqWsbuM6nEX6CsCDxUCjFtEhKFftv0yt1me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VC3k3di/749gxZrjLaQ3++Ktcx2s4MtpdRx8A1nR6AtcKdD7qZwj4I1RLFXDHo0ANtJCJAzkVWS8dIMFVLnkdRxAWL8+POUhmCPui8awWqtb9Twux9QJcgC+b0gq4d2DpUulgLJi2iZc4S5VH0oP5giXyeTYCloXow8fratAvY/1gaWs4Xxvq2oekGmc+WlTlllnbK8Wb+25O3hufIUDuworjJeFgy9qnk70JxWWIv/FzjedVlBvPyf5gN3n3Hjnfh7c/ioeg/TEN5qYUZEdDlgc7RDUziVpK4l+Yoj349WC34UxG76uDa3FtNqUzuPHWPk+t+i4bpXhU0RNTdGaLw04hQMwsK8khy6GaEg/j2uS6xcGSC2sUAJS9LsmG2z1Iq2cgPOqBZ8SWabza2KSPWvs+yLnILJJfHAA56s0tqi1M3dpyjmsgq0f52Q2KpD/EZYgrfVBHcPDnZaMm0RY+kLBjyVJZ0VO+pLKHT78TAAOFHJGOIocluUrFoDUb3VdxsiuTV6ia6Le1s3ANC+5TPsRhrdkI+YoS1XX9K/N4/xSMCDXReUAOfAaScmB3SwGr1qpUnCtB4VD2zqujXV4+ZbQogPlo31sgitqy2YWhZ8W7BclKxdmQCP1H0sxz2UDp6jhbAQMDyCs5lDgPnkWAoMP8SvDqoFskvZamvx1cHaVqN4e+C0JJfAbFpU2QqnjqaIQRwpeCg/SgdAqSOHmrg4MoAD9B0WpqaMBXKyKeHNrntmWj7r/tyUP0fKF1PGI1Cn3IUHuVKbMybHgw95YbrfYE7yUxr/iBuPI4SkAEdbqLgQxDYUtEUsRzTkE8td6g6H5GaZ
[2020-05-01 07:50:02.064] [LOG] Fetched VIEWSTATEGENERATOR value: 4E24AF74
[2020-05-01 07:50:02.103] [LOG] Cookie Value: ASP.NET_SessionId=urv14lugscw4gcl3uqeqr51z; BIGipServerPool_P_SunnyPortal=3070535872.20480.0000
[2020-05-01 07:50:02.104] [LOG] Fetched VIEWSTATE value: 3ZlIJkTD6/Nu07+OvDaS7flws2Ju49t6GgYkY6wI/RUdY5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value: 4E24AF74
[2020-05-01 07:50:02.530] [LOG] Login Failed, no redirect to Dashboard
[2020-05-01 07:50:02.561] [LOG] Login Failed, no redirect to Dashboard
[2020-05-01 07:50:02.580] [LOG] Login Failed, no redirect to Dashboard
[2020-05-01 07:50:03.380] [LOG] HTTP Result: 200
[2020-05-01 07:50:03.385] [LOG] Whoops! There was an uncaught exception…
[2020-05-01 07:50:03.387] [ERROR] TypeError: Cannot read property ‘1’ of null
at Request._callback (/home/pi/MagicMirror/modules/MMM-SunnyPortal/node_helper.js:103:121)
at Request.self.callback (/home/pi/MagicMirror/modules/MMM-SunnyPortal/node_modules/request/request.js:185:22)
at Request.emit (events.js:200:13)
at Request. (/home/pi/MagicMirror/modules/MMM-SunnyPortal/node_modules/request/request.js:1154:10)
at Request.emit (events.js:200:13)
at IncomingMessage. (/home/pi/MagicMirror/modules/MMM-SunnyPortal/node_modules/request/request.js:1076:12)
at Object.onceWrapper (events.js:288:20)
at IncomingMessage.emit (events.js:205:15)
at endReadableNT (_stream_readable.js:1154:12)
at processTicksAndRejections (internal/process/task_queues.js:84:9)
[2020-05-01 07:50:03.405] [LOG] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
[2020-05-01 07:50:03.406] [LOG] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
[2020-05-01 07:50:03.418] [LOG] HTTP Result: 200
[2020-05-01 07:50:03.420] [LOG] Whoops! There was an uncaught exception…
[2020-05-01 07:50:03.421] [ERROR] TypeError: Cannot read property ‘1’ of null
at Request._callback (/home/pi/MagicMirror/modules/MMM-SunnyPortal/node_helper.js:103:121)
at Request.self.callback (/home/pi/MagicMirror/modules/MMM-SunnyPortal/node_modules/request/request.js:185:22)
at Request.emit (events.js:200:13)
at Request. (/home/pi/MagicMirror/modules/MMM-SunnyPortal/node_modules/request/request.js:1154:10)
at Request.emit (events.js:200:13)
at IncomingMessage. (/home/pi/MagicMirror/modules/MMM-SunnyPortal/node_modules/request/request.js:1076:12)
at Object.onceWrapper (events.js:288:20)
at IncomingMessage.emit (events.js:205:15)
at endReadableNT (_stream_readable.js:1154:12)
at processTicksAndRejections (internal/process/task_queues.js:84:9)
[2020-05-01 07:50:03.428] [LOG] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
[2020-05-01 07:50:03.431] [LOG] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
[2020-05-01 07:50:03.440] [LOG] HTTP Result: 200
[2020-05-01 07:50:03.441] [LOG] Whoops! There was an uncaught exception…
[2020-05-01 07:50:03.442] [ERROR] TypeError: Cannot read property ‘1’ of null
at Request._callback (/home/pi/MagicMirror/modules/MMM-SunnyPortal/node_helper.js:103:121)
at Request.self.callback (/home/pi/MagicMirror/modules/MMM-SunnyPortal/node_modules/request/request.js:185:22)
at Request.emit (events.js:200:13)
at Request. (/home/pi/MagicMirror/modules/MMM-SunnyPortal/node_modules/request/request.js:1154:10)
at Request.emit (events.js:200:13)
at IncomingMessage. (/home/pi/MagicMirror/modules/MMM-SunnyPortal/node_modules/request/request.js:1076:12)
at Object.onceWrapper (events.js:288:20)
at IncomingMessage.emit (events.js:205:15)
at endReadableNT (_stream_readable.js:1154:12)
at processTicksAndRejections (internal/process/task_queues.js:84:9)
[2020-05-01 07:50:03.444] [LOG] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
[2020-05-01 07:50:03.445] [LOG] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
^A^A -
@TheDuDiop said in MMM-SunnyPortal Solar Module:
[2020-05-01 07:50:03.380] [LOG] HTTP Result: 200
[2020-05-01 07:50:03.385] [LOG] Whoops! There was an uncaught exception…
[2020-05-01 07:50:03.387] [ERROR] TypeError: Cannot read property ‘1’ of null
at Request._callback (/home/pi/MagicMirror/modules/MMM-SunnyPortal/node_helper.js:103:121)the node_helper didn’t get the response from some service as it expected
-
thanks for your answer, what can I do that the node_helper goes again? or is this a developer problem?
-
probably a developer problem… don’t know the module at all
-
Hi,
It seems that the sunnyportal website is very picky about which user-agent is trying to connect to their web server.
I just changed the user-agent string on line 61 of the file node_helper.js
from‘User-Agent’: ‘Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko/20100101 Firefox/71.0’,
to
‘User-Agent’: ‘Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:77.0) Gecko/20100101 Firefox/77.0’,
And now I am able to login again.
I will try to work out some better code to prevent this from happening in the future.
Can somebody else verify if this solution works?
Regards,
Linuxtuxie -
@linuxtuxie thank you will try it tomorrow
-
Thanks for this great module. I have a problem on the loading.
mm-error.log
[2020-06-22 17:30:35.669] [ERROR] (node:2694) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. [2020-06-22 17:30:35.671] [ERROR] (node:2694) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. [2020-06-22 17:30:36.721] [ERROR] Unable to fetch login page: Error: certificate has expired at TLSSocket.onConnectSecure (_tls_wrap.js:1317:34) at TLSSocket.emit (events.js:200:13) at TLSSocket._finishInit (_tls_wrap.js:792:8) at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:606:12) { code: 'CERT_HAS_EXPIRED' } [2020-06-22 17:30:36.741] [ERROR] Unable to fetch login page: Error: certificate has expired at TLSSocket.onConnectSecure (_tls_wrap.js:1317:34) at TLSSocket.emit (events.js:200:13) at TLSSocket._finishInit (_tls_wrap.js:792:8) at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:606:12) { code: 'CERT_HAS_EXPIRED' } [2020-06-22 17:30:36.747] [ERROR] Unable to fetch login page: Error: certificate has expired at TLSSocket.onConnectSecure (_tls_wrap.js:1317:34) at TLSSocket.emit (events.js:200:13) at TLSSocket._finishInit (_tls_wrap.js:792:8) at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:606:12) { code: 'CERT_HAS_EXPIRED' } [2020-06-22 17:30:39.469] [ERROR] TypeError: Cannot read property 'statusCode' of undefined at Request._callback (/home/pi/MagicMirror/modules/MMM-SunnyPortal/node_helper.js:101:46) at self.callback (/home/pi/MagicMirror/modules/MMM-SunnyPortal/node_modules/request/request.js:185:22) at Request.emit (events.js:200:13) at Request.onRequestError (/home/pi/MagicMirror/modules/MMM-SunnyPortal/node_modules/request/request.js:877:8) at ClientRequest.emit (events.js:200:13) at TLSSocket.socketErrorListener (_http_client.js:402:9) at TLSSocket.emit (events.js:200:13) at emitErrorNT (internal/streams/destroy.js:91:8) at emitErrorAndCloseNT (internal/streams/destroy.js:59:3) at processTicksAndRejections (internal/process/task_queues.js:84:9)
So if I read correctly, I see that Buffer() is depreciate.
But It’s also write something strange with the certificate. In the mm-out.log I see more information:0|mm | [2020-06-22 17:26:43.303] [LOG] SocketNotification START_SUNNYPORTAL received for the first time...setting updateInterval to 900000ms 0|mm | [2020-06-22 17:26:44.113] [LOG] Refreshed access token because it has expired. Expired at: 17:26:43 now is: 17:26:44 0|mm | [2020-06-22 17:26:44.147] [LOG] Refreshed access token because it has expired. Expired at: 18:26:44 now is: 17:26:44
What can I do to resolve this case?
I already try to uninstall and re-install all, with npm install or ./install_deps.sh or the 3 npm install request / flow / chart but it doesn’t works.Any idea?
Thanks for your help
-
Thanks to hervidero the code has been altered so that it ignores the provided SSL Certificate.
Hervidero also made the charts a little bit better and wrote some code to make sure you can’t set an updateInterval < 15 minutes.
This release also includes the User-Agent change suggested in the previous comment
The latest release can be fetched here
https://github.com/linuxtuxie/MMM-SunnyPortalRegards,
Linuxtuxie -
@linuxtuxie
Hello , i try to run the SunnyPortal module, but still no result. I´ve reinstalled the Pi severl times , down to a fresh image with no other modules, but i get only the loading view. thats all.Any idea what i have to do ?
error message from PM2.log
Login Failed, no redirect to Dashboard or UserProfile/FixedPages/HoManEnergyRedesign.aspx -
Hi icemanmw,
It seems that your installation is redirecting you to the following page: /FixedPages/HoManEnergyRedesign.aspx instead of the ones we already know of (DASHBOARD_URL & USERPROFILE_URL )
In to code we are checking if the returned HTTP redirect matches the DASHBOARD_URL or USERPROFILE_URL
You could try to use the below code in the node_helper.js script to add this page
-
Add the HOMAN_URL variable at line 21
var HOMAN_URL = ‘/FixedPages/HoManEnergyRedesign.aspx’; -
Change the code starting from line 99
// Hack to check for login. Should forward to dashboard.
if(httpResponse.headers.location && httpResponse.headers.location === DASHBOARD_URL) {
console.log(“SUCCESSFULLY LOGGED IN TO DASHBOARD”);
callback(err, jar);
} else if(httpResponse.headers.location && httpResponse.headers.location === USERPROFILE_URL) {
console.log(“SUCCESSFULLY LOGGED IN TO USERPROFILE”);
callback(err, jar);
} else if(httpResponse.headers.location && httpResponse.headers.location === HOMAN_URL) {
console.log(“SUCCESSFULLY LOGGED IN TO HOMAN”);
callback(err, jar);
} else {
console.log("Login Failed, no redirect to Dashboard, UserProfile or homan "+ httpResponse.headers.location);
callback(new Error(‘Login Failed, no redirect to Dashboard, UserProfile or homan’));
}
Can you let us know the results?
Regards,
Linuxtuxie -