Read the statement by Michael Teeuw here.
MMM-pages & mmm-remote-control
-
Thank you for the link, but the command is working, if I use the notification “PAGE_DECREMENT” without an aditional parameter. But I´m not sure how to pass the page as paramter, so the mmm-remote-control is executing “this.sendNotification(“PAGE_CHANGED”, 1)”.
-
from the mmm-pages doc
https://github.com/edward-shen/MMM-pagesalso do note that to switch to page 1, you need to send 0 to the module -
I understand this. The question is how to pass the page:
Like one of these??- http://192.168.0.62:8080/api/notification/PAGE_CHANGED?page=1
- http://192.168.0.62:8080/api/notification/PAGE_CHANGED?1
- http://192.168.0.62:8080/api/notification/PAGE_CHANGED?payload=1
or how ?
-
@waki said in MMM-pages & mmm-remote-control:
http://192.168.0.62:8080/api/notification/PAGE_CHANGED?page=1
no
to go directly to page 1http://192.168.0.62:8080/api/notification/PAGE_CHANGED?payload=0the direct page numbers are 0 based…
-
I know the page numbers start with 0. But if I use the commands in the list, no matter what page index I pass, I only get a black page. So I think the formal way, of how I pass the paramter is wrong. And your command also doesnt work
-
@waki open the developers window, ctrl-shift-i and select the tab labeled console, set the filter to control
and then send a message and see what the error is…or look at the mmm-remote-control code
-
I tried this, there is no error. The notification gets recieved by the mmm-pages modules, but it reports:
[Pages]: received a notification to change to page [object Object] of type objectFrom the API I get the answer:
{“success”:true,“notification”:“PAGE_CHANGED”,“payload”:{“payload”:“1”}}But I only get a black page. And I looked inside the code, but my js knowledge is too bad to understand what is happening there.
-
@waki try this
“payload”:{“page”:“0”}
-
Hi, were you able to solve this? I am having the same issue
-
@waki @m1scha
the page that you would like to rotate to is given as a url parameter. Replace localhost:8080 with your own ip’s.curl -X GET "http://localhost:8080/api/notification/PAGE_CHANGED/0" -H "accept: application/json"You can test it out with the Swagger API:
http://localhost:8080/api/docs/#/Module Control/get_api_notification___notification_____p_
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login