Skip to content
@PRRQRC

PlaceRickQRCode

Let's place RickQRCodes all over on r/place, pixelcanvas, etc.... Join us in our Discord server!

PlaceRickRollQRCode

Members

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

ToDos

  • Pixelcanvas scraper
  • Pixel importance based on changes --> dynamic heat maps
  • connect scraper with existing commander
  • Node server api
  • Js userscript
  • Bug Hunting + fixing

Userscript (Pixelcanvas)

Current Endpoints (Beta):

  • URL: https://pixelcanvas-scraper.shadowlp174.repl.co/api/pixel/%x.%y
  • Return format: JSON or false
  • 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.

Pixel Updates

  • 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;
  }
};

Popular repositories

  1. commander commander Public

    JavaScript 3

  2. pixel-finder-bot pixel-finder-bot Public

    JavaScript 1

  3. .github .github Public

  4. pixelcanvas-scraper pixelcanvas-scraper Public

    A pixelcanvas.io scraper

    JavaScript

  5. pixelcanvas-userscript pixelcanvas-userscript Public

    The userscript for pixelcanvas.io

    JavaScript

  6. place-userscript place-userscript Public

    An autoplacer violentmonkey userscript for r/place 2023

    JavaScript

Repositories

Showing 9 of 9 repositories

Top languages

Loading…

Most used topics

Loading…