This is just something I threw together to play with API calls and because I don’t know of something that exists like it, but there probably is.

This would seem to work best in actual physical store locations with a digital screen showing prices.

The idea is that a business owner would automatically update the Monero price once per week or so to keep Monero more stable.

The script is made to not include JavaScript for use on tor.

What the script does is fetches the current monero price in your fiat of choice (default usd) and adjusts item prices by writing a new index.html file (currently in /var/www/html). The user puts in the name of the item, their fiat of choice, and the price in fiat and the script fetches the current price from coin gecko, devides the item price by the current monero price, multiplies by 1000 to get the price in milinero, and writes that to a webpage.

Pastebin (expires 6 days) https://bin.linux.pizza/?9cb6a8d7d2a1c4fc#EpvNi4iWgMmziRZ5nyi3v6UDSzFJHrvdsT9wwUR8j7jq

Screenshot https://files.catbox.moe/x38059.png

You would need to add the script to root crontab to get it to run on a schedule. (Default refresh is 1 week)

  • jet@hackertalks.com
    link
    fedilink
    English
    arrow-up
    2
    ·
    8 months ago

    If we’re spitballing ideas, I would say you need to monitor the price more frequently than once a week, put some weight on having a sticky price for at least a week at a time, but have brackets around your minimum margins. So you bump up if the exchange rate dips below your margin, and then stick to the sticky prices if you have margin to play with

    • shortwavesurferOP
      link
      fedilink
      English
      arrow-up
      3
      arrow-down
      1
      ·
      8 months ago

      Well, of course you could run the script more often than once a week, and it would be a simple change to a meta tag in the HTML to make the web page refresh more than once a week. But i do see your point. I would have to think about how to do something like that. I dont want the “customer” to see a fiat price at all. That way they get used to an item costing a particular amount of monero. If i as a customer know that a cheeseburger at this place is 37.67 milinero and i see another place offering a burger for 100 milinero i am going to laugh at them.