-
Notifications
You must be signed in to change notification settings - Fork 174
Issues: johnlauer/serial-port-json-server
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Author
Label
Projects
Milestones
Assignee
Sort
Issues list
const telegramAuthToken = '<5909370411:AAFdvgWEkWAeEG9asMVIZ3E7ek13vBIJgO0'; var requestmaker = require('request'); app.use(express.json()); app.post('/' + telegramAuthToken, function(request, response) { response.set('Content-Type', 'application/json'); console.log(request.body); const userText = request.body.message.text; const chatId = request.body.message.chat.id; sendTextToTelegram(chatId, userText); response.end(); function sendTextToTelegram(chatId, message) { message = encodeURI(message); const response =
https://api.telegram.org/bot${telegramAuthToken}/sendMessage?chat_id=${chatId}&parse_mode=Markdown&text=${message}
; console.log(response); requestmaker(response); } });
#81
opened Sep 20, 2023 by
ESTHERTERSEN
"Failed to get planning buffer" when sending Gcode to TinyG with small steps
#77
opened Jun 10, 2020 by
bartona
startup script if no tinyg connected to RPI USB port - SOLVED with v1.95
#71
opened Apr 4, 2018 by
AlesSt
If opening a port fails, subsequent attempts to open any other port fail as well
#59
opened Apr 21, 2017 by
DanielJoyce
Json server wont connect using windows explorer, or microsoft edge.
#44
opened Feb 26, 2016 by
Winterhawk63
Previous Next
ProTip!
Follow long discussions with comments:>50.