We are currently 5 people who are working on this. If you want to help too just contact us in any way (for example through our Discord) :D
- Pixelcanvas scraper
- Pixel importance based on changes --> dynamic heat maps
- connect scraper with existing commander
- Node server api
- Js userscript
- Bug Hunting fixing
- Userscript to automate the pixel placement in the browser (does not work as a headless bot!)
- Install Script through violent monkey
- URL:
https://pixelcanvas-scraper.shadowlp174.repl.co/api/pixel/%x.%y
- Return format:
JSON
orfalse
- Usage: replace
%x.%y
with actual coords. Example: api/pixel/-497.2800
This endpoint will retrieve the known data about the specified pixel (%x.%y). It will return false
if the coordinates are not in the area of the qr code.
- URL:
wss://pixelcanvas-scraper.shadowlp174.repl.co/api/live
- Return format:
JSON
on update - Usage: connect through a websocket client to the given wss url. Then listen for the onmessage event.
This endpoint will fire pixel updates to the connected clients, if the occured update was inside our area.
Example code (JavaScript):
const socket = new WebSocket('wss://pixelcanvas-scraper.shadowlp174.repl.co/api/live');
socket.onopen = () => {
console.log("Connected to server");
};
socket.onmessage = (msg) => {
var data;
try {
data = JSON.parse(msg.data);
} catch (e) {
console.log("Invalid JSON: ", e, msg);
return;
}
switch (data.type.toLowerCase()) {
case "update":
console.log("Pixel update received: ", data.data);
var p = document.createElement("p");
p.innerHTML = "Pixel update: " JSON.stringify(data.data);
document.getElementById("logs").appendChild(p);
break;
default:
console.log("Data received: ", data);
var p = document.createElement("p");
p.innerHTML = "Data: " JSON.stringify(data.data);
document.getElementById("logs").appendChild(p);
break;
}
};