Prob is solved for the moment. Had a typo in the chatID.
-
New plugin for Telegram
-
i used pimatic the last time 1-2 years ago. everything working well etc.
today i tried to setup a new rpi and i just cant get telegram plugin to work. its not loading, status is only “activated”, i put in in all data in the config but its not “loaded” which makes me not able to create a telegramreceiverdevice. any suggestions?
-
@bertreb said in New plugin for Telegram:
Did you change your node version and what does the debug say (deamon.log), just before the plugin isn’t loading?
thanks for the fast reply. nope i used standard installation procedere. i tried to install manually again, see here:
pi@raspberrypi:~/pimatic-app $ sudo npm install pimatic-telegram
npm WARN engine pimatic-telegram@1.1.14: wanted: {“node”:">=8.0.0",“npm”:">1.1.x"} (current: {“node”:“4.6.2”,“npm”:“2.15.11”})
npm WARN engine telegraf@3.38.0: wanted: {“node”:">=8"} (current: {“node”:“4.6.2”,“npm”:“2.15.11”})
npm WARN engine debug@4.3.1: wanted: {“node”:">=6.0"} (current: {“node”:“4.6.2”,“npm”:“2.15.11”})let me check daemon.log asap
-
@bertreb it seems theres something wrong in the config, but i dont see any errors in the config file
16:48:07.119 2021-05-24 Monday
16:48:14.062 [pimatic] Starting pimatic version 0.9.54
16:48:14.073 [pimatic] Node.js version 4.6.2
16:48:14.075 [pimatic] OpenSSL version 1.0.2j
16:48:16.670 [pimatic, ppm] 2.15.12
16:48:16.715 [pimatic] Loading plugin: “pimatic-cron” (0.8.8)
16:48:17.292 [pimatic] Loading plugin: “pimatic-mobile-frontend” (0.9.16)
16:48:18.175 [pimatic] Loading plugin: “pimatic-tplink-smartplug” (0.0.8)
16:48:18.829 [pimatic] Loading plugin: “pimatic-telegram” (1.1.14)
16:48:18.892 [pimatic] Unexpected token {
16:48:18.972 [pimatic-cron] the time is: Mon May 24 2021 16:48:18 GMT+0100 (BST)
16:48:18.983 [pimatic-tplink-smartplug] Starting pimatic-tplink-smartplug plugin
16:48:19.626 [pimatic-mobile-frontend] packing static assets
16:48:20.160 [pimatic-mobile-frontend] packing static assets finished
16:48:20.169 [pimatic-mobile-frontend] rendering html -
i now made a fresh install of my raspberry and reinstalled everything from scratch… still the same error of this unexpected token
-
I did a test with node 4.9.1 and Telegram. I got the same error.
I seems a higher node version is needed to get Telegram working.
If possible you should use the latest version of node 10 (10.24.1)The reason for this is probably an underlaying library of Telegram, changed and updated the minimum node requirement.
Current node v4 installs will have no problem but for new node v4 installs this will fail. -
@bertreb said in New plugin for Telegram:
I did a test with node 4.9.1 and Telegram. I got the same error.
I seems a higher node version is needed to get Telegram working.
If possible you should use the latest version of node 10 (10.24.1)The reason for this is probably an underlaying library of Telegram, changed and updated the minimum node requirement.
Current node v4 installs will have no problem but for new node v4 installs this will fail.thanks! i installed using this commands
https://pimatic.teamemo.com/Guide/Getting-Startedand it worked!
now i just cant send any commands because in telegram the bot says “please provide passcode first and reissue your command after” but i didnt set any passcode at all?
-
btw my user id is enabled and admin in telegram pimatic settings
-
its working now, i had to manually set the “secret” in the config file