123solar 1.8
Re: 123solar 1.8
Andy, did you use 123Solar 1.8.4.1 ? If not use it
Re: 123solar 1.8
up to date


Re: 123solar 1.8
i did it! telegram test
1 create new bot with @BotFather
1-1 view BOT_TOKEN of your bot
2 create new group
3 add your bot in this group
4 view CHAT_ID of your group
5 input CHAT_ID in format '-xxxxxxxxxx' (MINUS required)
test your bot with this url
test send message
1 create new bot with @BotFather
1-1 view BOT_TOKEN of your bot
2 create new group
3 add your bot in this group
4 view CHAT_ID of your group
5 input CHAT_ID in format '-xxxxxxxxxx' (MINUS required)
test your bot with this url
Code: Select all
https://api.telegram.org/botBOT_TOKEN/getme
Code: Select all
https://api.telegram.org/botBOT_TOKEN/sendMessage?text='test'&chat_id=-CHAT_ID
Re: 123solar 1.8
Your /var/lock permissions is ok but for a reason your http user or php can't write in there.
Did you set some sort of open_basedir restriction in php.ini ?
Did you set some sort of open_basedir restriction in php.ini ?
Re: 123solar 1.8
Ok, there still a glich with telegram test, change 'Test Telegram' admin/admin_meter2.php with a print_r
CHAT_ID should have no minus in 123s settings
Code: Select all
echo "
<br><div align=center><br><font color='#8B0000'><b>We encountered an error sending the message</b></font>
<br>
<br>";
print_r($output);
echo "
<br>
<br>
<INPUT TYPE='button' onClick=\"location.href='admin_invt.php?invt_num=$invt_numx'\" value='Back'></div>";
Re: 123solar 1.8
Code: Select all
We encountered an error sending the message
Array ( [ok] => [error_code] => 400 [description] => Bad Request: chat not found )
Re: 123solar 1.8
Did you get the good "chat":{"id"} number ?
Code: Select all
curl -s -X POST https://api.telegram.org/bot<TOKEN>/getUpdates
Re: 123solar 1.8
yes
i get chat id with minus in telegram responce
i get chat id with minus in telegram responce
Re: 123solar 1.8
So it's a group chat. Do you really need that ?
Re: 123solar 1.8
Yes. 123solar must send message to me and to other person (in my case)So it's a group chat. Do you really need that ?
===========================================================
It may be worth expanding the capabilities of the bot.
1 make a template for messages (multilingual)
2 send messages if output = 0
3 if the output is less than the forecast by 30% (example)
4 if 123solar does not work (running bash script)
5 Sending regular messages with the development of today (custom interval)
6 it is obligatory to indicate the name of the inverter in the messages (often there are several of them, and the bot is preferably common to all)
Who is online
Users browsing this forum: No registered users and 5 guests