Blueforcer / awtrix3

Custom firmware for the Ulanzi Smart Pixel clock or self made awtrix. Getting started is easy as 1-2-3
https://blueforcer.github.io/awtrix3/
Other
1.25k stars 108 forks source link

[BUG] Some icon could not be downloaded "This ID doesnt exist" #362

Open servicemensch opened 11 months ago

servicemensch commented 11 months ago

Bug report

Describe the bug

Some LaMetric icons could not be downloaded, even if preview is working

Additional information

To Reproduce

Go to web interface / icons enter icon ID 6427, or 160 or 72 click preview click download

Expected behavior

icon should be downloaded to local storage, but this is not working for every icon in lametric database

Error message

Error: This ID doesnt exist

Blueforcer commented 11 months ago

I tested all 3 and it works fine. Try clearing your browsers cache.

GM-Jokemaster commented 11 months ago

Same here 0.90 on 2 new Ulanzis. Tryed 4 different browsers same result = This ID does not exist. Download/Save of the Preview from the shown Preview as Animated gif works. (Right click Preview Picture save to) Then i have to use the Files tab and upload manual. (If i klick ICONS first the folder icon shows as open wihout files (First time use its ok). The Path in the top does not change to ICONS main path.

If i choose manual edit the path to /ICONS/yxz.gif the first time with no files in ICONS AWTRIX shows error. (can't reproduce) I now klick an icon under ICONS and the path changes correctly. So upload in the root path works after that i have to right click move then enter /ICONS/yxz.gif it moves finaly to ICONS.

Static Pictures xyz.png saved from Preview Page do not work an need to be convertet to yxz.jpg

Hope that helps.

Mayby only on first time flashed Upanzis ? (I have 2 with same results)

Blueforcer commented 10 months ago

Sorry i cant reproduce it. It works for all other users without issues. It need to be something on your side wich blocks the download. PiHole, any other blocker or something like this, maybe also your country. i dont know. sorry

servicemensch commented 10 months ago

Tested it by accessing from a different device (iPAd instead of Windows computer) to the display: Icon download successful. So the browser/device you are accessing the web interface matters in some cases. Anyhow all other icons were downloaded from the affected windows machine.

GM-Jokemaster commented 10 months ago

Retryed it with Edge (Chromium) did do the trick (my Firefox doesn't) Ty ! From my Point /closed

Glup3 commented 9 months ago

Hello, got the same issue. Tried on MacOS with Firefox, Arc, Chrome & Brave.

Works on my iPhone tho - IOS 16

Anonym-tsk commented 6 months ago

Please reopen this issue image There is problem with corsproxy.io. Maybe it's possible not to use this proxy and try to load icons directly from lametric?

Blueforcer commented 6 months ago

Please reopen this issue image There is problem with corsproxy.io. Maybe it's possible not to use this proxy and try to load icons directly from lametric?

Thats not possible, because your browser downloads the icon, not the ESP itself. Im using it as workaround to not getting a CORS violation. dont know why youre getting one..

Anonym-tsk commented 6 months ago

Thats not possible

Just use fetch with {mode: 'no-cors'}, it works. I can't find source of awtrix web, only compiled js.

Blueforcer commented 6 months ago

do you think I haven't tried it? Most servers already ignore it, including lametric..

After hours of testing different options this was the way to go, and it works for thousands of users.

You can also upload the icons manually with the file manager

Anonym-tsk commented 6 months ago

image I don't know the reason, but my ip is blocked on corsproxy. According to this issue, i'm not alone.

Blueforcer commented 6 months ago

image I don't know the reason, but my ip is blocked on corsproxy. According to this issue, i'm not alone.

Not really. The root issue from the other users was the browser not corsproxy, maybe a browser extension. You have a different issue, wich of course I unfortunately unable to solve.

Anonym-tsk commented 6 months ago

So, i changed function downloadLametricImage in DoNotTouch.json and now it works without proxy. Please try this solution. image

Anonym-tsk commented 6 months ago

@Blueforcer what do you think?

Anonym-tsk commented 6 months ago

@Blueforcer Have you tested my solution? Maybe we can add it to the firmware and get rid of the proxy?

Blueforcer commented 6 months ago

Not yet, im not at home this week.

But awtrix doesn't contain a Proxy . A Proxy usually sits in front of the awtrix to access it via https from the outside.

But I don't use any of this, I need to compile it and let it test from my community on discord

Anonym-tsk commented 6 months ago

But awtrix doesn't contain a Proxy . A Proxy usually sits in front of the awtrix to access it via https from the outside.

Yes I understand this. But using an external proxy is not very secure (we can’t trust its creators 100%) and is unstable (it doesn’t work for me).

Blueforcer commented 6 months ago

But using an external proxy is not very secure (we can’t trust its creators 100%) and is unstable (it doesn’t work for me).

That is up to the users

rusnasonov commented 6 months ago

I don't know the reason, but my ip is blocked on corsproxy. According to this issue, i'm not alone.

Just use VPN

adrienrichmond commented 4 months ago

Same problem, do you have a fix ?

image

Anonym-tsk commented 4 months ago

Fix is here, but @Blueforcer doesn't merge it.

Blueforcer commented 4 months ago

Try this firmware.zip

adrienrichmond commented 4 months ago

Try this firmware.zip

Hey, not working

pacroy9 commented 4 months ago

Try this firmware.zip

Hey, not working

I have the same problem, firmware update is unsuccessful

Blueforcer commented 4 months ago

@Anonym-tsk I implemented your changes. Please check

Anonym-tsk commented 4 months ago

@Anonym-tsk I implemented your changes. Please check

Where to get the binary?

Blueforcer commented 4 months ago

@Anonym-tsk I implemented your changes. Please check

Where to get the binary?

3 posts above

Anonym-tsk commented 4 months ago

I implemented your changes. Please check

How to do clean install? Now I have modified json. What I need to do? Reset before flash?

Blueforcer commented 4 months ago

Just upload the bin file in the update tab of awtrix. Maybe it's necessary to delete the DoNotTouch.json and reboot awtrix. But not sure right now.

adrienrichmond commented 4 months ago

Hey Blueforcer, do you have a solution to modify bin files ? thx!

Blueforcer commented 4 months ago

Why you need to modify bin files? Your fix is already in the posted file

adrienrichmond commented 4 months ago

Hello, j'ai flasher le firmware bin mais ceci ne fonctionne toujours pas merci!

Anonym-tsk commented 4 months ago

Try this firmware.zip

It works, but (!): You need remove file DoNotTouch.json from filesystem after update and restart awtrix. Without removing i have old file and the fix isn't applyed.

Anonym-tsk commented 4 months ago

@pacroy9 @adrienrichmond try this please

adrienrichmond commented 4 months ago

Try this firmware.zip

It works, but (!): You need remove file DoNotTouch.json from filesystem after update and restart awtrix. Without removing i have old file and the fix isn't applyed.

It's working, thank you very much bro :)

Anonym-tsk commented 4 months ago

Try this firmware.zip

Something is wrong with this firmware. I get unexpected device reboots from time to time.

pacroy9 commented 4 months ago

@pacroy9 @adrienrichmond try this please

This firmware update and the deletion of the file solved the problem. Many thanks for the fix.

Schlicki commented 4 months ago

Does not work for me. Got the modified firmware and deleted the "do not touch" but still get the error when trying to download any ID.

xbmcnut commented 4 months ago

Just got my first TC001 and love it but have the same issue. Device is running 0.96 and I keep getting the This ID doesnt exist error when trying to download icons. Tried the firmware file listed in the various threads and deleted the /DoNotTouch.json file but then I lost access to the device on my network even though the device told me it had a network IP address (and the AP was off). Re-flashed to get it back online but now stuck without icons again. Tried FF, Edge and Chrome.

EDIT. Tried again with the new firmware & removing the json file and while I still have access now, still get the icon error.

xbmcnut commented 4 months ago

UPDATE: Used the reset pin on the back after updating and removing the /DoNotTouch.json file and now it works! 🎉

rtrive commented 4 months ago

Try this firmware.zip

It works, but (!): You need remove file DoNotTouch.json from filesystem after update and restart awtrix. Without removing i have old file and the fix isn't applyed.

Confirm it works. Thanks

tebald1 commented 4 months ago

Try this firmware.zip

Worked for me thx

serfin64 commented 4 months ago

Manually transferred the file with the icon to the Icons folder Icons_2

I call icons to appear on the watch - the watch reboots

TEST-Notify

Displaying Effects and messages on the watch - works

Blueforcer commented 4 months ago

This icon preview doenst look like a 8x8 GIF. You cannot jsut download a png from the webpage and rename it to a gif

serfin64 commented 4 months ago

Icon - *.gif. The clock is displayed as an animation in the web interface

https://github.com/Blueforcer/awtrix3/assets/156530596/5827b8aa-f197-4bc0-affc-75cdc8c14c61

Blueforcer commented 4 months ago

A webpage can render everything, it has nothing to to with the matrix renderer. But again, its not an 8x8 icon. You copied the gif from a website wich is way bigger. 8x8 Icons doesnt have a black border nor a grid in the preview. it looks like this image

rolfvreijdenberger commented 1 month ago

adding some information here: I have the same issue, but this is caused by my pfsense distribution using pfblockerng (domain blacklist). Whitelisting corsproxy.io solves the issue. Keep in mind, that this domain corsproxy.io is being flagged as malware by opensource blocklists. image