Jump to content

RABroos

Members
  • Posts

    1
  • Joined

  • Last visited

RABroos's Achievements

  1. All, Not sure if this is in the correct discussion, but has anyone connected a Smiirl counter (https://www.smiirl.com/) to a caspio datapage output/value yet? I understand the Smiirl counter connects based on JS /Node: const express = require('express'); const app = express(); app.get('/', (req, res) => { res.json({number: 12345}) }); app.listen(80); or in PHP: header('Access-Control-Allow-Origin: *'); header('Content-Type: application/json'); echo json_encode(array('number' => intval(date('Hi')))); or in Phyton: import http.server import socketserver import json from http import HTTPStatus class Handler(http.server.SimpleHTTPRequestHandler): def do_GET(self): data = { "number": 54321 } self.send_response(HTTPStatus.OK) self.send_header('Content-type', 'application/json') self.end_headers() self.wfile.write(bytes(json.dumps(data), "utf-8")) httpd = socketserver.TCPServer(('', 80), Handler) httpd.serve_forever() source: https://www.smiirl.com/en/counter/category/custom Use case We are using Caspio to monitor an approval/voting process, it would be a nice gimmick to hand the customer a Smiirl counter before the voting process starts so they can track it's progress live. The # of votes in favour would need to be posted by Caspio and picked up by the Smiirl counter. Thoughts? Looking forward to your ideas.
×
×
  • Create New...