#dev-chat
1 messages · Page 45 of 1
how can i cancel se pay?
@slim agate Please provide your account ID found at the top of this page: https://streamelements.com/dashboard/account/channels This ID is public info and safe to share here.
5c9bc2485f0cf9da70577949
thank you 🙂
Greetings all! I'm looking to convert an existing JS to an overlay widget and having issues with syntax. I'm not a programmer so still trying to figure out how exactly to line everything up with the documentation I've found but what I'm seeing, to me, suggests that it may be possible by utilizing counters in chat and having them update a widget/image. It's really the joy of how to get it all to be utilized either from the code being loaded into SE directly or from calls to the js file (if edits were made to it in github).
I can get it to work conceptually with a Wins counter example I found in threads here but I can't presently wrap my mind around how to have the functions work (let alone making them nested) in JS to make image calls since I can't find examples for what I want to do with that for static images or with a variable image as the original code has it.
The widget example is here: https://github.com/StreamElements/widgets/tree/master/BotCounter
Conversation is here: https://discordapp.com/channels/141203863863558144/259680142459142144/549944123470381066
I think I might be kinda close to what I'm wanting with image changing depending on count with this example: https://github.com/StreamElements/widgets/tree/master/ImageOnEventAmount
The code I am working with is found here: https://github.com/UBERCRUZER/bar-loader
Posting this question with permission from the code author.
Thanks in advance for any assistance!
@half fjord https://streamelements.com/dashboard/overlays/share/5f75e7c44cf4f0db3acff292 Grab that overlay and type on your chat !loadbar 200 kg
@half fjord https://streamelements.com/dashboard/overlays/share/5f75e7c44cf4f0db3acff292 Grab that overlay and type on your chat
!loadbar 200 kg
@viral patrol You are a god among men. I appreciate that greatly!
Being able to look at the widget editor also helps answer those questions that I had about it. Thanks again!
You are welcome.
Is there an event like onDataLoad? Waiting on 4-5 images from the server before I can do anything.
onEventReceived doesn't help here since it's just a slider and the only so-called dynamic data are the links to these images.
I think the best way is using jQuery $(document).ready() or https://stackoverflow.com/questions/9899372/pure-javascript-equivalent-of-jquerys-ready-how-to-call-a-function-when-t or you can load all the images via JS and check the state
For the barload thing above, is there maybe a way to have it unload the image if there is no weight on the bar? Just curious how variable that might be as I don't always use weights and can easily just enable/disable the source but i'm the curious sort.
Also my brain is apparently not working. Which line changes the font color? Black is kinda hard to read in some instances.
Font color can be adjusted in CSS tab. Visibility if no weight - I think you can add a command !hide that will change visibility and !loadbar should enable visibility
how can i share my overlay to some else
Hello, I can't edit or preview the overlays
Can someone help me? Whenever I click to open they just keep loading
Font color can be adjusted in CSS tab. Visibility if no weight - I think you can add a command !hide that will change visibility and !loadbar should enable visibility
@viral patrol i'll try it. thanks!
I have client work how can send you the stream overlay link use it easily for him can any one tell me
@half fjord hey if you now about this can you tell me
I have client work how can send you the stream overlay link use it easily for him can any one tell me
@toxic terrace Digging through the chat search, people like you and I don't have access to do that: https://discordapp.com/channels/141203863863558144/370226812669788161/757303687776567327
" ... that is only for accounts with special permissions and a background check"
If you want to share it to someone that you trust, you would have to have at least editor access to their dashboard or the other way around then it could be duplicated between the accounts.
when im setting up tip alerts, how do i make it to where a certain dollar amount of tip triggers one alerrt and the other range of amount triggers another?
example 3-29$ is one alert and 30-99 is another alert?
when im setting up tip alerts, how do i make it to where a certain dollar amount of tip triggers one alerrt and the other range of amount triggers another?
example 3-29$ is one alert and 30-99 is another alert?
@cloud monolith I've now responded to your question of this in helpdesk-twitch channel, I believe they prefer you just posting questions in one channel and keeping it to the appropriate channel.
Could someone explain how to get a mini game working in my stream that viewers could open and play? I simply just want minesweeper, im not sure if mouse interaction is possible, if they cant click on anything then i'd like for them to be able to pick a column+row to click by typing it in chat, or by channel point reward.
I have the code for a Vanila JS, HTML, CSS from this site, you can check it out here for info:
@mighty bough You will need to create a chat listener for !bomb x y and flag x y where x and y are between 0 and 15. Then you can trigger this function via this listener:
const cast = (type,row,col)=>{
const el=$(`[data-row=${row}][data-col=${col}]`);
if (el.hasClass("game-cell")){
if (!timerId) setTimer();
var cell = board[row][col];
if (type==="flag" && !cell.revealed && bombCount > 0) {
bombCount += cell.flag() ? -1 : 1;
} else {
hitBomb = cell.reveal();
if (hitBomb) {
revealAll();
clearInterval(timerId);
e.target.style.backgroundColor = 'red';
}
}
winner = getWinner();
render();
}
}
@cloud monolith I've now responded to your question of this in helpdesk-twitch channel, I believe they prefer you just posting questions in one channel and keeping it to the appropriate channel.
@half fjord yea but no one answers me
@cloud monolith i thought you got answer. Thank you for bringing it. So basically you need to create alert variations
- default alert (will cover lowest tips)
at least $3- this will cover$3-$29.99at least $30- this will cover$30+
so in alert variations you cant have different sized alerts?
because it keeps keeping the same dimensions of my other alerts
unless i make a completely seperate alert, but other then the range of my donations wont work
Unless you set the alertbox full 1080 then you'd need different overlays.
i figured...so how can I make it to where My alert variations dont kick off during that seperate alert?
example, i have 3 kinds of tip alerts. one for 3-29 dollars, 30-99, and 100=
100+
the 100+ one i cant use in the variations
due tot he size I need it to be
thank you in advance
Good morning developers! I asked Icel about how to get a link to my recent YouTube video. I did get a code to use but to no avail it didn’t work. In hindsight, im wanting to auto generate a link for my recent YT video either in either as a chat command or timer command. Any leads?
hey @shut shell I know it's not coding per say, but if you use tubebuddy they have a link that will always direct to your most recent video
@shut shell Go to the public link for your channel. Without linking it what does it have following the first slash after youtube.com?
@cloud monolith You can have more than one alertbox within single overlay. The most common way is to have two of them where small is for regular alerts and big for hype events.
- Create a variation $100 on small alertbox and disable everything there, remove text, image, sound
- Create a big alertbox which default alert is empty (like a variation above), but it has a variation that will be played - $100+ with everything you want to show
@shut shell https://docs.decapi.me/youtube?endpoint=latest_video. It is ${customapi https://decapi.me/youtube/latest_video?user=USERNAME_HERE} OR ${customapi https://decapi.me/youtube/latest_video?id=CHANNELID_HERE}
@cloud monolith You can have more than one alertbox within single overlay. The most common way is to have two of them where small is for regular alerts and big for hype events.
- Create a variation $100 on small alertbox and disable everything there, remove text, image, sound
- Create a big alertbox which default alert is empty (like a variation above), but it has a variation that will be played - $100+ with everything you want to show
@viral patrol ahhhhhh that makes sense...thank you!
~~How much would it cost for someone to make clippy into a widget for me? Will trade graphic design services for help lol
Or have him running as a source in OBS would be an option as well, live animations as if he were really running is the goal!~~
~~Heres the code:
https://www.smore.com/clippy-js~~
@viral patrol thank you, it’s worked! I hope you’re staying healthy and safe! Have a great weekend!
@upper bough dont know why "Clippy" didnt show up in the discord search!
@upper bough i assume its more than just clippy as the follower animation is bonzai =(, was hoping for just clippy. Man, i need to learn to code so i can just make it all myself haha. Appreciate it tho!
@viral patrol how difficult would it be to update the Clippy widget to have just clippy and have the text box show above the character?
If you want to have just a clippy - change agent to Clippy in "Follower" and other widget settings.
And if you want it to be permapresent on your screen - unfortunately this would require a big rewrite of that widget.
@viral patrol Perma isn't needed, i'll just do a slide in/out right animation.
And I see the agent settings now, thanks!
This is "regular" alertbox, so you can adjust appear/disappear animations too
I have a feeling that this person will disappear shortly
Huh. About text bubble - I don't remember that, but I think if you adjust position of Clippy it will use empty space to display bubble
Makes sense. Its all good, it seems to be animation dependant where the bubble shows
I think this can bring as many surprises as Office 97 had.
Like flight simulator in Excel.
@viral patrol you came thru hard with that widget, thought Id have to do all that myself with animations and sounds and who knows what else hahaha
Quick question: is there an easy way to format the side, where {currency} appears in the alert? What should it be based on? I have trouble using locale for this...
@crisp needle I am not sure if there's currency code as templating variable as in that case it would be just:
const amount = parseFloat(`{amount}`).toLocaleString(`{userLocale}`, {
style: 'currency',
minimumFractionDigits: parseFloat(`{amount}`)%1!=0?2:0,
currency: `{currencyCode}`
});
But you can add currencyCode and userLocale as custom fields, user can provide data for.
I am using parseFloat for that to not have those variables underlined in my IDE, you can skip that and use just {amount}
Thank you, I'll check it out
And this may help you with it: https://github.com/StreamElements/widgets/blob/master/CustomEventList/widget.json#L168
So you don't have to prepare this locale list on your own
hi
I was playing with the wheel spin options that exist last night as per this thread: https://discordapp.com/channels/141203863863558144/457957557470887947/731885619114147840 using the "prize wheel" alternate.
It works great for what I am doing with just a couple of questions. I was wondering if there is a way to have the results output text results to a field on an overlay or a text variable as it were. I can get it to update counters but not a way to automatically show text to display a list of "prizes won" that I can use in an overlay.
So, here's what I have and what I'm trying for. I'm using this for workout streams where I spin a wheel to pick what exercises are going to be done for the day. I have a list of exercises on one wheel that output to chat of what each spin comes out as. Separately I have 8 spinners that are just #s to know how many of which of the 8 exercise to do. These all output to chat to update the counter for the field. I can get that part because they are number counters, but auto updating text in an overlay is a different animal. Hopefully I explained that well enough between this and the image here.
In short, if there is a way to get an overlay to automatically pick up certain text triggers to add to text fields that would be useable. If there is a way to do it so the prizes just go straight to an overlay that works too.
Also, I'm sure there is a way to do a variable for the # spinner so I don't have to have one for each exercise and I can just call !ex1 but I wasn't cognizant enough at 2am to deal with figuring that out so I went the "easier" but more time consuming route or just making separate wheels.
Thanks in advance.
can anyone guide me on how to change out this image?
@pulsar arch You'd click the 3 dots and choose properties. You'd choose the game for it there. Beyond that not possible.
Ah, that makes sense I never chose a game. Thank you!
Hi All - Trying to find some guidance on whether it's possible (or incredibly easy and I'm just not understanding how...) to customize an alternate follow alert that will fire when the total follower count is at a specific number. (e.g. specific alert for 10,000th follower)
@cyan elk Check this one: https://github.com/StreamElements/widgets/tree/master/AlertsOnProgress
@viral patrol Thanks so much, I will dig into this. Appreciate it!
I put the spinner through its paces today and the proof of concept worked. I just need to tighten up the code to have the JS nested so I only have one # spinner and hope to eventually not have to manually enter the text but it wasn't too bad.
Hi guys. Are JS / Jquerry questions allowed here?
I want to have an alert box pop up every X minutes. Seems to work.
But now I want to replace the hardcoded values with streamelements fields.
https://jsfiddle.net/qebxsjta/21/
The content of <div class="text">foo</div> to be precise.
$('.text').text = "eee1";
This does not seem to work :/
Test your JavaScript, CSS, HTML or CoffeeScript online with JSFiddle code editor.
nevermind. I can't read :))))
$('.text').text("eee1");
``` works
hello, how to upload data from counter on load stream?
Or if i write some command and it will be done.
which event pull object when stream is start?)
https://cdn.discordapp.com/attachments/199460642975907840/762085356597542952/unknown.png
@half fjord just skimmed your last VoD with the wheel. Looks sweet what you are doing! ...unfortunately my dev time has dropped to zero so I have limited time help.
Basically; There is no way for the wheel to directly update a different layout (they are each in their own sandbox). It is possible though to merge all of the code into one layout, but the way you using it sent a command to chat then updating is the easiest way. There is also a way to have multiple wheels built into 1 overlay. If you look at the SubWheel alternative, there are 3 different "prizeList"s for a normal sub, gift sub of 5, and then gift sub >5. In theory, it would be possible to do you main "exercise" spin, then call a re-spin for one of the 'rep #' wheels.
I believe you can load the counter value in onWidgetLoad with ```js
SE_API.counters.get('counterName').then(counter => {
// counter is of the format { counter, value }
});
@exotic heron ^
@elfin arch appreciate that! and I appreciate the wheel!
Hmm, is there any way in SE to have a text variable that can be called in an overlay or widget? If so, I could certainly utilize text cues for updates. Maybe something similar to having the chat text appear on screen but only text that has been denoted properly, or only from a specific user? I know that counters only allow numbers but something similar to that allowing text would be fantastic.
As for the number wheel spins, I agree. It's very much just a sequence of if/else statements and maybe a variable as with the prize spinner or the way the loadbar is setup that Ix helped with. I'm sure I'll play with it when I have time.
how do you mean on the first question @half fjord ? can you give an example. For number 2 it would be more of adding a "type:" to the main object like the response 'res''s
Try this @half fjord 😉
the 'defaultList' is your first spin. then it will read the "respin" from that result and spin again with that list.
1 important note; is that the "glow" list must match or be greater then the amount of lists. if it isn't you'll get errors
@elfin arch why not:
{
const diff = prizeLists.length - wheelGlow.length>0;
if (diff){
for (i=0; i<=diff;i++){
wheelGlow.push(wheelGlow[Math.floor(Math.random() * wheelGlow.length)]);
}
}
}
🙂
🤣 it's getting hardcoded at this point. the different wheel colors shouldn't even exist
but; ya... i should have added a default error check for if no wheel color; don't crash
Oh. So filter and refill
an option for bot to whitelist twitch clips in chat for autopermit might have a low enough risk of abuse to be worth having
@tribal robin https://streamelements.com/dashboard/bot-spam-filters You can put them on whitelist.
wow it's like you guys thought of everything, thanks!
Hi guys. After I have created a custom widget, how do I save it to be used in other overviews?
Do you want to share it with everyone and make it a #widget-share ?
No, not really. At least not yet.
If I have to that is fine. Just an easy way to use it in my other overlays
oohhh. then the 'duplicate' button to move internally
I don't believe so; but am not 100% on that.
^ that button (posting for future users searching)
Thank you 😗
I quickly hacked together a thing that shows up every 5 minutes or so to promote another twitch channel 🙂
Started uning StreamElements yesterday. I'm very impressed
ooo. looks pretty... yah the SE editor is a ton of fun.
Kinda want to make it a list of channels .. but this is fine for now.
Try this @half fjord 😉
@elfin arch I will check it out tonight when I hopefully have some time to do so! Much appreciated.
Hello, where can i speak to someone who can help me with a webm video upload that is larger than 30MB?
you know which file type i can use to keep the transparency?
@glacial scroll the easiest way is to use ffmpeg to convert it from mov to vp9 webm ffmpeg -i inputfile.mov -c:v libvpx-vp9 -pix_fmt yuva420p output.webm"
thank you 🙂
And if it's still too large you can add -crf 35 higher number means less quality but lower file size.
Details here https://trac.ffmpeg.org/wiki/Encode/VP9
is there a way to send an event from OBS/LB/Stream Deck or any other way - to a widget......for example, I have a custom bit tip sub tracker that expands when an incoming tracked event comes in, then collapses to a thin line to stay out of the way. I would like to send an event during stream that will manually expand the widget up as if a tracked event came in, but I manually sent it
i guess basically what I am attempting to do is what the button in SE does, only outside of SE
I think the easiest way is to do a macro that sends message to chat. I am no aware of events emitting ability via streamdeck or any external API.
yeah I thought of that as a worst case
Or maybe, you can emit event:test event via websockets with payload of {listener: "widget-button", field: "yourField", value: "yourValue"}
what would the endpoint be that SE would pick it up
is it possible to send a message to chat from a custom widget?
I saw it has SE_API.sendMessage but no sign for what formatting it's expecting?
@novel pond sendMessage is to send a message to API, like key/value store, resumeQueue. To send messages to chat from custom widget the easiest way is to use jebaited.net MITM proxy
You can find an example here: https://discordapp.com/channels/141203863863558144/457957557470887947/756125007318483086
gotcha, thanks @viral patrol
Does anyone know if it is possible to resize an image or something in a custom widget based on the position and size of the widget
Position: idk, size to size: yes, set width and height of the image as a percentage of widget.
@honest hearth
Hi, anybody has payload description for events. Like for youtube:
{
"_id": "5d8e70e23ad61b82dfe476f8",
"channel": "5d60f7798db52e6e4023d93a",
"type": "subscriber",
"provider": "youtube",
"createdAt": "2019-09-27T20:27:17.000Z",
"data": {
"username": "marchello Lv",
"providerId": "UCPGPP5U0ybhLe_Rwz1ZwbMQ",
"avatar": "https://yt3.ggpht.com/-JkYiypW7mAw/AAAAAAAAAAI/AAAAAAAAAAA/PwKNXSeRTyU/s88-c-k-no-mo-rj-c0xffffff/photo.jpg",
"items": []
},
"updatedAt": "2019-09-27T20:27:17.000Z"
}
I have this. Now i need for twitch. As for some weird reason, test event payloads are completely different from reality.
@fervent rock Please check this: https://github.com/StreamElements/widgets/blob/master/CustomCode.md#on-event
hey all, a while ago I did build a custom alert widget for my self, this is working great for me - but now I wanted to enable TTS for subscriber messages and did not find anything in the documentation about is, can someone help me out here?
TTS is independent from code of alertbox. Code is for what is displayed on stream. You should have TTS settings in left panel, you can adjust.
@viral patrol I see what you mean, I think the problem in my case is that I didn't start with the "Alert Box" default widget, instead I did create something from scratch so there is no TTS code left and I don't have any TTS settings available
@crisp needle thanks for the reply. Could you possibly give a quick example? I'm not confident on how to get the widget dimensions
Depends on where you nested the image. You can size every element as i.e. 100% with and height which means it takes a whole parent element.
Example:
<div style="width:128px">
<img src="imageURL" style="width: 100%" />
</div>
The width of your top container can be 100% as well, taking the whole width of your layer/widget defined in the StreamElements overlay editor.
when I use do/while loop in se, it crashed my browser
Infinite loop?
Like tenszop said, maybe an infinite loop.
Make sure you're advancing the variable?
@naive sorrel The variable advances when there is an event
The browser freezes before I can emulate any events
If you're performing an infinite loop, your code will never process these events.
Rather than looping and waiting until you get the event, have a function run when the event happens and store your variable(s) so you know how to proceed next time.
I don't know much about JavaScript, but to my understanding it is single-threaded, so while one part of your code is running, you can be certain that no other parts of your code are.
@tough glade The TTS if available with alertbox only. You can have one just to handle TTS along with your current widget
@sturdy oak:
number=100;
test=0;
do{
//something fancy
// You want to increase a value here to not freeze your PC
test++;
}
while(test<number);
However I am big fan of forloops instead
@sturdy oak
Try to structure your code in the following form:
var state = {};
function startingFunction() {
// Start doing something fancy until you need an event
state.var = 0; // Or whatever
myEventNotifier.on('myEvent', stepFunction);
}
function stepFunction() {
if (state.var == MAX_NUMBER) {
endingFunction();
} else {
// Whatever
state.var++;
}
}
function endingFunction() {
// Whatever
}```
Or something to that effect.
Separate your step logic and invoke it when your event occurs.
Hi guys, I want to know if is possible to develop a custom module that made a API request and return the respose as a Bot chat message in a channel... Is that possible?
Some documentation will help me too XD
using the SE Bot?
Yeah bro
Im not sure but I think @mild cipher already made an api
Should be possible. Depends on what API you want to send requests to.
Or maybe you want to access module's API and from it send a message to chat?
It's not clear really, which one...
How do I control some dynamic parts of the overlay Im building with commands using the SE Bot
@daring kayak You can use ${customapi https://sgdsfgdfg/fdfg.xyz} to output returned string to chat. If you want more complex logic, you can use custom widget for that using MITM proxy. There are several widgets (Bank Heist, Bot Trivia, Chatters Wheel) using that on #widget-share channel. For
Hello developers. Is there a way to increase the store redemption animation to longer than 20 seconds?
@neat storm You can do that by using custom widget only I think.
Morning guys, does anyone know if theres a chat widget for trovo around yet? I've noticed theyve added the token system to their api docs
let fieldData=obj["detail"]["fieldData"];
let data=obj["detail"]["session"]["data"];
let followers = data["follower-total"]["count"]
console.log(followers) gives me 40, which is not correct
It should give me 430, ie total followers
according to github docs
Aggregates are updated over time
And there is better way to check fieldData - add let fieldData={}; in main scope and then change value in onWidgetLoad
yeah I've declared that as a global var
at the top
Aggregates are updated over time
@viral patrol So can I go ahead and usedata["follower-total"]["count"]
It depends on what do you want to display
You can use follower-goal instead
It all depends on purpose of your widget
I want to grab the current followers for a goal bar and increment it as there are new follow events
@sturdy oak Check this one https://github.com/StreamElements/widgets/tree/master/GoalsOverPeriod
I think this may help you
Lx whats the default image size via stream store?
@sturdy oak you can get them via onWidetLoad as you do above and then onSessionUpdate (instead onEventReceived, as people can unfollow you and that doesn't emit an event)
@gloomy fossil I think I don't understand
adding a pic to the item
the preview window
the set preview asset
i knew the size but forgot it
thats what i got just wanted to make sure
Thanks and i think sudo gave them a fair size
Each chat message is passed as an object according to the docs
Does this happen even when the streamer is offline
It does for Twitch.
@viral patrol do you know what the custom widget is called?
Hi, it's me again. Back to check in on Regex matching of commands. Just another update that still Regex isn't functioning as expected. I am a mod for streamer 'fanhots' and his commands have some commands' Regex that work and some that do not. The ones that do not are valid Regex and work fine if i just copy and paste the same thing to my personal channel. Parting the bot and Rejoining does not help. I feel like perhaps the only issue that could be causing malfunction is if individual streamers are only allocated a certain amount of Regex or something. If you need an example to look at, take a look at command !patch in his account, note the Regex and that using this on your own channel will probably yield the correct result, but typing patch notes? or patch? in HIS chat will not work properly. (As you can see I 'hardcoded' a bunch of matches into the command keywords to compensate for Regex not working properly) Cheers. [Was told to post this here instead of main helpdesk in case someone could help]
hi all, I have made a few animation in blender (mp4 file) and want to play them when a specific trigger is hit like sub/superchat. I want to stream on YouTube but don't know what triggers are there. Also is there any example widgets that I can look into to figure out how to make my own one?
@narrow galleon Add an alert box to your overlay, and from the setting of say subscriber, you have the option to upload your own videos and sounds
thanks alot 👍 it worked!
np 😄
The 1000 mb limit is for files uploaded to streamelmenets, so files of any size can be imported localy right?
Files uploaded to SE can be up to 30MB indivirually, 1000 MB is total quota per user.
I meant can use a 100 mb file by setting the source to my C drive
Not using SE's storage
Hey. I'm using Credit-Roll by Grot from streamelements themes, but i want it to show all my followers and not just session. Is there another widget for this or can i modify JS for Credit-Roll to do want i want? I am not very good with coding
thanks. I will try
(Just the one that I commented out on screen, not whole blocks)
Tried commenting out the part. But it still doesn't list all followers. Could it be that there is info lacking in streamelements? When i check widget data in streamelements I see the names that come up on the credit roll. But not all followers
I haven't been using streamelements for that long so it could be that it doesn't have all the info. Because I'm guessing the widget only gets data from streamelents and not twitch
Guess I would have to rewrite the code to get data from twitch?
Hello @hearty lake sends me to you, following my request on the french chanel. ( sorry for my english). I’ m a beginner and i don’t Know the possibilities of SE and commands. Here is my request: i would like a betting order but more complex than what is proposed. 1/ the viewer enters the command (!gamexxx) + the bet (500$ ´virtual money’). 2/ the bot answers « name of the viewer » + my custom texte. 3/ after 2min the bot launches the game with my custom message. 4/ 10 seconds later the bot gives the result of the game with a custom text + the names of winners. 5/ the bot can designate either no winner, or 1 winner if there are less than five participants, or 2 winners if there are more than 5 participants, or 4winners if there are more 20 participants. OR, if it’s more simple for you, the number of winners is random. 6/ the winners receive 2x their bets (virtual money) 7/ the delay before being able to replay is 5min. 8/ if the command is replayed within the 5min, the bot puts a custom texte on the chat. It’s a mini game in the chat. Thanks for your help 😊 and (Again) sorry for my english
@storm creek Custom eventlist widget has access up to 100 last events. So it may not display all of your followers.
ah makes sense
@storm creek also the base that it has data from SE - that is also true. It cannot display events that happened before your registration on SE website
I am working on my own chatbot using Node and am having some issues figuring out how to get donation events as they occur. Does anyone know of any sort of module/wrapper I can use to hook into events?
So not sure if I should ask here or not, but kinda wondering... did Benno's rotation widget break? I am noticing that none of the animation widgets is working suddenly. It instead appears more like a picture replacement slideshow with no animation.
It seems to be working for me. Please check if you don't have any external requests blocking extension in your browser
If it broke in your OBS, please clear cache here %AppData%\obs-studio\plugin_config\obs-browser\Cache
Hm its jsut it is acting the same on both obs and my browser
Check if you can access this URL: https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.7.0/animate.min.css
This is a library that does animations
So this is odd as if that one works, animations should be working as well.
yep
selected
doesn't matter what I choose
all the same
did the widget get updated and I need a new one to import?
Try this: go to This PC > right click > Properties > Advanced system settings > Performance > Settings > Make sure the very first checkbox is ticked, then OK out and refresh the browser source or overlay editor
........
there are so many explitives I wanna say right now...
but that did it
thanks @mild cipher @viral patrol
is there a simple reason for the emulated events (even with the "live" checkbox ticked) to work perfectly, but when actually streaming, some integer variables and math calculations (simple ones like Math.round() ) return NaN?
It is because the Math.round param is not a number. Like if you have subscriber tier which is string, so you should cast it to integer before like parseFloat or parseInt
This is because tier may contain "prime" string too
no, i have a switch case for the event types, but its a good thought. Ill try type-casting just in case. thanks, anything else come to mind?
and if statements to test types of subscriber, etc..
but it is happening with cheers and tips too
Try to console.log typeof just in case
:root {
--text-neon-multiplier: 2;
}
.accent.tip {
text-shadow: 0 0 calc(1px * var(--text-neon-multiplier)) #fff, 0 0 calc(2px * var(--text-neon-multiplier)) #fff, 0 0 calc(3px * var(--text-neon-multiplier)) #f72585, 0 0calc(4px * var(--text-neon-multiplier)) #f72585, 0 0 calc(5px * var(--text-neon-multiplier)) #f72585, 0 0 calc(6px * var(--text-neon-multiplier)) #f72585, 0 0 calc(7px * var(--text-neon-multiplier)) #f72585;
}
Any css magician that knows why this doesn't work?
Found it lmao
Couldn't see it in se's text editor but I can now in discord's lol
This badboy was the problem
:D
Now I have nice neon text effects haha
Anyone know is there a way to make a custom widget that your chat can interact with. e.g. if my chat type "Hit" it will trigger the widget to do something. Or If it even possible cause if not i don't want to put to much time trying it out and then finding out that it is impossible to make.
in custom commands, you can use this to do something similar to what you want. will that work?
more specifics on my particular problem. This section works perfectly in the overlay emulated events. But while streaming, with real events it shows "undefined"
am I somehow an idiot, or is there a core difference between emulated events and live events that we have no control over?
I am probably being an idiot, but what would cause this to not work in practice when it works fine in testing?
help why am i getting echo when trying to add music to my stream
i have ground control.. and once i click show on stream it echos
Just to get the basic stuff out of the way. Do you have a mic maybe picking up your speakers or a browser open with your stream playing?
mic is muted
@manic solar You want to ask in the helpdesk for the platform you stream on.
In this case twitch.
Question for the devs in here. I get that custom widgets can be made with the right code and such. Is it part of the code that allows StreamElements to have field functions like Command and permissions levels and such?
While I haven't gotten back to the spinner stuff yet that y'all were wonderful to help me on, I'm looking to do a Tabata Timer that can be setup and controlled via chat. There are a few JS examples of this already in existence so I'm curious as to the best options to get them converted into this format.
https://codepen.io/LauraNK/pen/rxWLMy this one seems pretty good with adjustable "time on", "time off/break", rounds, and sound cues but for some reason the audio isn't working.
https://github.com/natemago/tabata-timer is similar with audio working but it's awful so being able to utilize different audio might be good.
i got the echo fixed. but now i cant get the audio mixer to work with it lol
Can we track channel points community challenges?
@lone knoll It is possible with listening to onEventReceived events with listener set to message. There are several widgets that read chat on #widget-share
@sturdy oak Unfortunately we have no access to that.
That would be something cool to add
@half fjord This you can create that as regular dropdown with backend function:
Definition: https://github.com/StreamElements/widgets/blob/2bc5ab447559c970e16feaa7da7858139fe60b0f/WheelOfFortune/widget.js#L6
Usage: https://github.com/StreamElements/widgets/blob/2bc5ab447559c970e16feaa7da7858139fe60b0f/WheelOfFortune/widget.js#L31
Fields: https://github.com/StreamElements/widgets/blob/2bc5ab447559c970e16feaa7da7858139fe60b0f/WheelOfFortune/widget.json#L70
@indigo flume as requested, the additional info. more than happy to provide more, but this is the closest point to the api where the error can be seen.
https://discordapp.com/channels/141203863863558144/259680142459142144/764323429561532426
and the image below it.
Oh if its custom coding, i'm not the person
tried both dot notations, and the bracket notation. didnt think it would make a difference, but tried anyway
@viral patrol would be able to help
thanks for trying though 🙂
mmkk, well the ping in that case, getting their attention, it isnt the type as they suggested last time. at least, not on my side of the code.
@edgy agate There's a simple answer to that. You are not listening to specific event, so every single one triggers that. Like chat message
And chat message doesn't have amount property.
So most likely you have an event, which is working, but then your div is overwritten by chat message.
Hoping someone can help me out here. I've recently gotten custom alerts made and am trying to set it up using streamelements. Unfortunately the text isn't displaying over the image (yes I selected text over image but it just disappears) but rather underneath it.
Find the text div in css and write this line of code there @gritty summit z-index:100;
@sturdy oak can you please tell me where exactly!? I see 2 text fields
Find "awesome-text-container" and "username-container" in the css tab
So tried doing it and for some reason when I enable custom CSS it reverts to default alert and doesn't populate with the custom alert. In the screenshot above it shows "default.gif" . Guess imma have to redo that part as well.
Alrite, fixed that issue.
@sturdy oak could only find the awesome text container, there isn't any username container
nope. ENabling custom CSS triggers some sort of default which has a dancing shark gif.
I had to replace the link in the html with the link to my animated alert. But the text over image didn't work. Not sure what happened but after a while the alert completely disappeared and only text would pop up. Only seems to be an issue with my custom alert..........wondering whether maybe I'm doing it wrong or have missed a step @sturdy oak
Sub variations seems to show the name and amount of gifted subs above the aler
@gritty summit Text not showing up over your alerts? Go to the Advanced Text Settings and set the top margin to 50, you can work your way to the right position from there.
thank you, that worked wonders. It was set to -50 by default.....seriously wtf!?
@gritty summit it is set to -50 to fit with default animations on "text under image"
aah okay
👀
On the web socket is there a way to unsubscribe for a specific channel id?
Also are their JWT tokens the only way to capture donation events?
@snow totem the other (and recommended) way is to connect using OAuth.
But at this moment OAuth registration is closed.
@viral patrol much appreciated for the info and examples!
@viral patrol aahh, yea ok. dumb test then. that part makes sense. This is the original switch case though. still works perfectly in testing, but fails with live events. was trying to do a bunch of testing to nail down the issue, but I guess I went too far with it.
I tried to overwrite the label with the amount as with the other image, except it was down inside the cheer block, after the event type test. It did change the label, but only ever to 'NaN'. any idea for this one?
@edgy agate And here is a part I wrote earlier. The best is to compare if (parseInt(event.tier)===3000) as for live events it is not integer but string
Do someone has experience with tippeestream and knows how they did their poll widget (showing the twitch integrated poll in the overlay) ? Would like to have something similar for streamelements.
Did they just took the default browser source and stiled the heck out of it or is it actually done differenty?
@viral patrol, I dont refute that, and I can do that explicitly later. the '==' will match both string and integer as long as the character are the same (or is supposed to), but regardless of that. it is in the block below that I am having the issue with. The cheers are wrong. its like there is no amount assigned to the event. the live events are seen as NaN, while tests work in the overlay manager. I tried type casting them to integers using:
Math.round(Number(event.amount)/100);
still results in NaN
Oh. Right. It was == not ===
I wonder which event returns event.amount which is not a number
Can you try replaying event from activity feed? This should replay exact event, not the emulated one
that will work for later testing so I dont have to have an actual real event? somehow, that didnt even trigger in the mind, lol
I dont know what you mean, I have had several live events and I did a bunch of live testing with it.
I changed to bracket notation with the object to see if it helped. now the 'amount' seems to be an empty string or something similar
Hmmm. That is odd. Notation doesn't affect anything. I used bracket one as there are - characters in some of properties.
I think the best way for me would be to investigate it directly on the account you are working on. If you want to, please send me Editor's access invitation link over DMs and I will be able to check that tomorrow's morning.
ok no problem. I dont mind you digging around. but how do I get that link?
Is there a good tutorial for setting up a dev connection via JS to the API for working on new widgets? I've been round & round with the docs linked in the channel description & I can't seem to put together what I am missing. Obvs I need to authenticate to the API somehow. I know where to find/have my JWT/Overlay tokens, but I don't know where/how to pass those to the API. I would LOVE some help if someone could point me in the right direction plz. Thanks. 😁
Here's a look at my code:
const xhr = new XMLHttpRequest();
const token = "...";
xhr.addEventListener("readystatechange", function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open("GET", "https://api.streamelements.com/kappa/v2/stats/channel");
xhr.setRequestHeader("accept", "application/json");
xhr.setRequestHeader("Authorization", `Authorization Bearer ${token}`);
xhr.send(data);
This returns the following error info:
{"statusCode":401,"error":"Unauthorized","message":"Format is Authorization: Bearer [token]"}
I've also tried changing the format to match the error message, but nothing seems to work. So I am all ears on what I am missing here? Thanks again.
Thanks to @viral patrol for the help above, that seems to be working I think. I've changed over to overlays & I am getting a 500: internal server error when trying to get the following:
xhr.open("GET", "https://api.streamelements.com/kappa/v2/overlays/channel/overlayId");
And yes I have replaced channel & overlayId with my channel ID the overlay ID that I want to work on.
hey, not sure if this is the right place, but i found that the subpoints amount isn't correct, is this a general limitation or is there a way to get the correct amount?
@crude island twitch nuked that info so it's no longer retrievable.
"type": "checkbox",
"label": "Some checkbox"
}```
Does this field return true and false
I prefer dropdowns instead as change state of checkbox doesn't cause widget reload.
dropdowns it is
hey guys, im using a custom wiget, but some of the data isnt being brought from twitch, like my latest subscriber, is there any way to fix this?
not until you post the code
the entire code for the widget?
the JS will be enough
i've managed a workaround thankyou though @sturdy oak
Hello
There is a 5 minute counter, when the subscriber comes, it becomes 5 minutes again
StreamElements has this feature but not customizable like other streamers
I want to do like my own style
I saw in Lirik's stream
How can i do this
Train Count in StreamElements is not editable
like that
@pulsar willow You can create the very same behaviour with custom widget. Everything is fully customizable there.
You can listen to subscriber-latest events as debounce for your timer
You can start with: https://github.com/StreamElements/widgets/tree/master/StreamMarathon - just change the code to not add but set a time
okay I'll try
not sure if this is the right place to ask, but is there a way to set a !multi command?
Of course this should be used as a base. There is no animation not whatsoever there.
@wraith perch can you elaborate?
yes, my bad
so like, I want to set a multi stream link for twitch
without having to !command edit !multi
so instead of having to do !command edit !multi multistre.am/shroud/ninja, I could do !setmulti shroud ninja or something of the like
I think only via custom widget with sending message via API
If you would like to create "bot module" like this, check #widget-share for trivia game (I think it is the easiest one That involves bot messages/chat listener
I'm still here I couldn't do anything 
Oh. So if you want a design close to one that Lirik has, this is a lot of work of coder and designer.
You can adjust that counter to be a progress bar/circle, but with coding only
You can mix it together with: https://kimmobrunfeldt.github.io/progressbar.js/
I am calling it a day now. Have a great day/night! 🙂

Hey guys!
I have a little question regarding a simple custom widget I'm working on.
I use Javascript to show the latest Subscriber and when a new sub comes in I want it to update.
My problem is that at every new sub it switches first to "undefined xundefined" and then to the real name. How can I catch this so it won't show this?
Listen to onSessionUpdate and check subscriber-latest property. Or with your current code:
if (typeof whateveryouhave === "undefined") return;
Perfect, thank you! 
I declared a global variable, but I am not able to increment it in onEventReceived
Is that variable redeclared in that scope?
Like
let a=5;
{
let a = 7;
}
console.log(a); //prints 5
Wait. You changed your question.
yeah
nope
yeah
let variable = 0;
const data = obj["detail"]["event"];
if(listener=="tip-latest"){
variable += data["amount"];
}```
should I redeclare it in onEventReceived
You should not
yeah it should work but it isn't
This is the same scenario as in the hype goal by you.
There is a global variable adjusted by incoming events
Exactly the same
yeah im making a modified version of the same
😁
now it works
I forgot to call the function
😅
Hey any developers online here? I need help with updating just a certain session parameter through API
If anyone knows any vscode plugins with which I can use JSON as in the SE editor
let me know
@fickle wharf which session parameter?
@sturdy oak @viral patrol could you guys help me setup an API im looking for a way to Update Session Data i have API setup just dont know what i need to send
for a widget?
data["subscriber-total"]["count"]
Which data would you like to update?
let fieldData;
const data = {"follower-session":{"count":10}};
const xhr = new XMLHttpRequest();
xhr.addEventListener("readystatechange", function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
function resetSession() {
xhr.open("PUT", "https://api.streamelements.com/kappa/v2/sessions/"+fieldData["apiChannel"]);
xhr.setRequestHeader("accept", "application/json");
xhr.setRequestHeader("content-type", "text/plain");
xhr.setRequestHeader("authorization", "Bearer "+fieldData["apiToken"]);
xhr.send(data);
}
window.addEventListener('onWidgetLoad', async function (obj) {
fieldData = obj.detail.fieldData;
resetSession();
});
Id like to know how to update Session Subscriber Count
however id like to know how to update all of them if i need them some other time
let data=obj["detail"]["session"]["data"];
let fieldData=obj["detail"]["fieldData"];
let totalSubs = data["subscriber-total"]["count"];
});```
@sturdy oak that will only return me the count. I actually need to update it in session
Thanks @viral patrol
If anyone knows any vscode plugins with which I can use JSON as in the SE editor
@viral patrol ?
@fickle wharf from what I see you cannot update a single element of session data, you need to send a full object
@sturdy oak I am using PHPStorm
Does it support json?
It does
We need a full on desktop version of the SE editor
@viral patrol so what would be the solution here? First get the whole data then edit just the one you want and send it back?
And can you tell me how i can send the full object back?
Plus a bonus question i have is if you can somehow update the actual data inside Fields Parameter inside JS?
The answer to bonus is "no". You cannot programmatically update this data without (or at least - it is not easy). I would recommend using SE_API.store() methods instead
Check this. This is an editor I created some time ago
Or not editor - environment
ik that but it is limited
Yeah but SE_API isnt streamer friendly :/ as they sometimes wanna update it in those fields so if i could just update that one it would be better
fetch("https://api.streamelements.com/kappa/v2/sessions/" + channelId, {
"headers": {
"accept": "application/json, text/plain, */*",
"authorization": "Bearer " + JWT
}
}).then(response => response.json()).then(sessionDataRaw => {
let sessionData = sessionDataRaw['data'];
sessionData['follower-session']['count'] = 35;
fetch("https://api.streamelements.com/kappa/v2/sessions/" + channelId, {
"headers": {
"accept": "application/json, text/plain, */*",
"authorization": "Bearer " + JWT,
"content-type": "application/json;charset=UTF-8",
},
"body": JSON.stringify(sessionData),
"method": "PUT",
})
});
This one should work
Ok tested it and it works. Thanks @viral patrol 
Thank you Lx for helping EntilTM 
im too dumb to learn any of this
in the same boat as you 
rip me'
i know a lil but not like these guys lol
scripting lua for VLC is fun lol
Is there a way to detect redeemables in the event listener in the Overlays?
I dont think I see a flag but I wanted to ask in case anyone knows
The latest post in #💭︱feedback-and-ideas is not true
Center align for text can be achieved by adding text-align:center; to the parent div of the text
As you can see in the idea description - it is about one of default widgets, not custom ones that use dynamic font size via external library
@flat parrot I was using something like:
if (typeof obj.detail.event.itemId !== "undefined") {
obj.detail.listener = "redemption-latest"
}
As you can see in the idea description - it is about one of default widgets, not custom ones that use dynamic font size via external library
@viral patrol my 👀 not as sharp as yours lol
would it be possible to make a screenshot command that takes a screenshot and hosts in on imgur or puts it in a google sheet?
I think that the only way to do that is to hook the autohotkey + shareX + websocket control. So if somebody types !shot it sends data over sockets to autohotkey to press PrintScreen
And shareX should be set to store screenshots somewhere
Hello, I want to use the streamelements api but I cannot fill the application form. How can I get api access?
Hi. OAuth2 access programme is in batches. Every single batch has a review time and then there is analysis of stability. From what I know at this moment SE is gathering usage and stability info on those and due to last bulk being big registration form is currently closed. However you can use your personal JWT to auth against SE API and it is perfectly fine to use it when it comes to single user usage (not as service/software for others).
Okay thanks.
Hi friends - the kappa/v2/speech api is always returning 403's for me, when I access the page in my browser its returning a 1020 from CloudFlare. Any ideas how to resolve this, is there a specific header I need to supply?
That is correct behaviour. Speech is disabled for API usage and it is accessible from alertbox only.
could I get a regex for name 1 removed and name 2 removed this seems to be a new troll on my stream. please DM for the two words, and please DM me with the regex statements when you have time. Thank you in advance the names are under Forbiden Bad Name
I have not put the names in because they are crude
@viral patrol please see my post above
@coral thunder name [0-9]+ removed like this?
Hello everyone, is there a code template for a Custom Widget for Chat Box for Facebook? Because the default Stream's chat widget is not fully customizable via code. Thanks
@lyric wave Hi. I think you can create a custom widget with: https://github.com/StreamElements/widgets/tree/master/CustomChat
@lyric wave Hi. I think you can create a custom widget with: https://github.com/StreamElements/widgets/tree/master/CustomChat
@viral patrol I tried but I could not make it work for Facebook Gaming. Thx anyways
I think it should work with FB Gaming just like default widget does.
But remember - FB enables chat only after stream is live.
Yes, the thing is that on the CustomChat widget, the .js file has a lot of Twitch URLs like for the badges, emotes and stuff. I'm gonna try to change some of those and see how it works.
I have another question, I'm trying to code custom labels for FB Gaming and it's going ok but I can't seem to find the "Top star givers list" on the API. I was browsing through the Sources tab and found this code which says that the listener is "stars-latest" on the API but that returns just the latest stars giver, not the top star givers list.
So none of these has the info I need
This is what I'm looking for, I can get that through the "Top star giver list" default widget but I need it for custom code 😫
Hey, idk if this is the right channel but how do i share custom overlays from SE?
@tribal fiber This feature is available for verified users like custom design companies and code gurus.
@lyric wave https://github.com/StreamElements/widgets/tree/master/CustomTopList
@viral patrol I'll give it a try, thank you so much! Didn't see that
Owh, okay.. For example I have a client who wants a custom alert box. Who would I go and send it to the client then?
We encourage work as Editor on client's account directly, so all the assets are on their account and you can safely remove them from your account without affecting your client.
Alright, but is there any way to send my overlay / alert box to a client?
@lyric wave https://github.com/StreamElements/widgets/tree/master/CustomTopList
@viral patrol That did it, I just added the field, stars: "Stars" 🙂
Thank you so much
Oh cool this is exactly what I was looking for. Thanks for having this.
So I am trying to build a custom, locally run overlay for any incoming follows/subs/etc.. using the SE API. Everything works great when I test those events from the overlay builder interface on streamelements (my local events fire), or if I re-run an event from ground control. However, I am not seeing any live/actual events when I'm streaming. Has anyone seen this before?
Hi ! Sorry for my bad english. I am trying to make a custom event list to show only the item redeem in store loyalty. For now in the event list, ils only show as item redeem, is it possible to inclure the title of the object redeem ( an picture ) in the event list ? Is it possible to show only the event on Waiting for approuval ?
Hi ! Anyone know how I can recover the bagdes list of an user with tmi.js on a widget ?
if(self) return;
const { badges, 'badge-info': badgeInfo } = tags;
document.write(badgeInfo);```
This only say the subscriber badge
Hello, does anyone know if a widget has a unique id/name assigned to it that I am able to retrieve? I have multiple of the same widget and would like to be able to differentiate between them when they are loaded.
Ex. onwidgetLoad() var x = api store get this specific widgets data (widget1, widget2, etc). Also could be useful if I am able to retrieve the current overlay id that the widget is inside.
@arctic zephyr if ur using tmi
var badges = userstate['badges'];```
and badges will be like { 'broadcaster': '1', 'warcraft': 'horde' }. Through SE u can directly access every chat message also, instead of having to use TMI. https://github.com/StreamElements/widgets/blob/master/CustomCode.md#message
@steady iron I am trying to use the Awesome Shout Out overlay and it just stopped working for me and I am not sure why.
It was working one moment, I changed the sound, and now it no longer works. T_T
@steady iron I am trying to use the Awesome Shout Out overlay and it just stopped working for me and I am not sure why.
@slender meadow male sure to not use apostrophes in the texts
Its a bug
That was the issue. Thanks!
hey is there any chance someone can help me please. I am creating some things for stream at the moment but I believe I will need to use custom code for it and have no idea what i am doing. I would really appreciate it, Thankyou in advance 🙂
@shadow pendant Can you elaborate please, so we know what you need? Maybe there are ready-to-go solutions out there we can show you
I will describe as best as I can 😄 So there are certain things like having reactive overlays with a persistent thing that is reactive and then when someone subs/follows/donates that will change to something and then loop untill the next alert trigger is activated .
I could show you if you would like ?
Hmmm. This seems like custom widget from scratch... Or two widgets - alertbox with solid green colour as background (removed by chroma key in OBS) and below that your other widget that plays idle animation. So when there's alert, your idle animation will be covered by green colour which in post-processing in OBS will be replaced by transparency
not exactly Is it possible for my to join chat and ill show u the guy in my ear is saying that it wont work because the alert that is being played is going to stay on a permeant loop and once u chroma key a video file it reveals everything under the green screen ? 🙂
But it won't reveal idle animation. It will be covered by green once it gets to OBS
So not visible
Then OBS will remove that
Ohh. No idle animation there from what I understood now.
MB
ok bare with me a moment he said hes burning toast and hell be right back 😄
ur chillin 😄
he back 🙂
So from the coding point of view - The best way would be to get "Custom Event List" and adjust code to have videos and other stuff. Just to display the one latest event.
But there's no "ready" solution
the guy in my ears is asking is there like a basic outline for what we could make this happen please ? :)
this is the idea
Base overlay color is "purple"
secoond phase, first alert (example) follow changes the previous color to another color "red" until the next alert trigger has been activated ? 🙂 if that makes sense ? 😄
honestly I dont know what im doing 😄 a friend who does graphics design is helping me with the branding etc im just here to look pretty when hes done 😄
Huh. So this should be done via code listening to onEventReceived
is that on the standard coding layout that I get when I enable the custom html/ CSS ? 🙂
This is a widget that should be coded for this particular example as alertbox doesn't provide persistency on screen.
ok I will give that a go now. I really appreciate you taking the time to help, Really does mean a lot 🙂
@shadow pendant And here's documentation for that: https://github.com/StreamElements/widgets/blob/master/CustomCode.md
im the designer doing the branding and overlay for him, I need to know how to get the events of alerts familied so i am able to say continue this alert loop until the next alert is activated
please
this will cancel the previous alert to replace with the new one
^^ hes the man in the ears 😄 and thankyou Lx really appreciate it 🙂
So as I mentioned earlier, the easiest way is to adjust Custom Event List to display video files of your choice. So your widget should work just like eventlist with displaying one latest event.
Appreciate your help here lx
hey so ive been trying to sort out my previous issue since i asked about it earlier and really have no idea what im doing is it possible for someone to spare 5 minutes if you have it to lend a hand. Im completely new to this usually i just buy something off of someone instead of getting something personally made 🙂
Are iframes allowed for custom widgets?
Not possible for security reasons.
i dont know what an iframe is 😄
Why would you ever want to do while true?
I think you are looking for something like: https://www.w3schools.com/jsref/met_win_setinterval.asp
The setInterval runs once right
I got 2 setIntervals that I want to run at certain interval of time
2 setIntervals inside 1 setInterval
can anyone help me, i need to a way to use media request properly, its all set up and works, however when i switch to show video on stream it changes the sound output to desktop audio on obs. it has its own controllable music sound channel when i use it when not showing on stream. i want the sound to still come from the browser and be controlable sound level but just show the video on stream without switching audio channel
and yes ive tried the control via OBS switch on the properties tab on obs but then i cant hear the music but stream can
lx i hate to be that guy but i still need help pal :/ 🙂
i have no idea what im doing 
@vital oasis You need to control audio of that browser source via OBS. Just check "Control audio via OBS" in browser source settings
@shadow pendant I will be around in few minutes, how can I help you?
@vital oasis You need to control audio of that browser source via OBS. Just check "Control audio via OBS" in browser source settings
@viral patrol yeah i said ive done that but then i cant hear the music, the music should stay where the player controls are either ground control or browser but when i want to show the video it switches over. also tried that control via obs but then i cant hear that channel, and if i monitor the channel it plays through my desktop channel which is used on stream for notifications etc which is no use eeither as the levels are all wrong
so the same problem as before i literally have been sat here with a group of people trying to figure it out since i thought i was going to be ok. I was hell wrong about being ok with it 😄
@vital oasis also you can use !volume command
@shadow pendant I think the best is to outsource that ;-). Our code gurus are on fiverr. Like this one: https://www.fiverr.com/lord_stett/create-a-streamelements-widget-for-you
As this is pretty complex task
haha no i can do that with my mouse its the channels moving when i play the video nvm it hard to explain clearly. thanks anyway
@sturdy oak there is no one-for-all solution for every case. You just never do while(true) nor nest setInterval as they will both cause infinite loop
I see lx mentioned my Fiverr gig ;)
Hey, @shadow pendant how can I help you?
Hey guys, wanted to override the !giveaway command. Wondering if there's a way to still reference the public giveaway url as a variable?
Also anyone have any examples of accessing the current running giveaway via api within an overlay? ie have a ticker tick on new entry and querying total entries?
@willow marsh I think that the one of possible ways is merging this widget: https://discordapp.com/channels/141203863863558144/457957557470887947/623835460938104834 with one that can send bot messages
@viral patrol thanks for the link. Will take a look.
Now when you say one that can send bot messages, what do you mean exactly? like the widget can respond to the chat itself?
It can with proxy service. Check a trivia widget on #widget-share
@arctic zephyr if ur using tmi
var badges = userstate['badges'];``` and badges will be like { 'broadcaster': '1', 'warcraft': 'horde' }. Through SE u can directly access every chat message also, instead of having to use TMI. https://github.com/StreamElements/widgets/blob/master/CustomCode.md#message
@frozen hearth Thank you for the information ! I tried this little code but it run just one time for the first message and nothing after. Know you why ? I'm begginer in JS
const event = obj["detail"]["event"];
var msg= event["data"]["text"];
console.log(msg);
if (msg !== null) {
document.write(msg);
}
});```
hey does anyone here know how to "publish" a custom widget so the editor can not be opened anymore?
Hey guys, does anyone know if a custom widget can have audio?
I get audio when I am previewing my source in a browser, but nothing when I use a browser source in obs
Hi, guys. one of the mods told me to send my questions here. Here i go:
i'm looking for a sord of goal bar (just in visual) that works as a hashtag percentual counter, that makes a kind of a battle between two hashtags on Twitter.
a) The tracker works finding the total hashtags of that day and makes the sum of them, understanding everything as 100%.
b) The "goal bar" shows the percentage of each hashtag in a sum of 100% (Example: 65% #GoFla and 35% #GoVas )
I'll try to send a pic.
It may work as an Alert box, that i can make it appear with a shortcut on may keyboard or "streamdeck", etc.
I've seen it on a stream and i'd like to do the same.
Dou u guys know if there's a widget or how can i do it?
Not sure how the hashtags will be counted, but for the bar thing you can use my goal bar as a foundation
and tweak it to your liking
TY, @sturdy oak
Anyone has something to help me?
@fierce river Maybe this one: https://discordapp.com/channels/141203863863558144/457957557470887947/599555191661920266
@stiff jungle It is not possible to publish a custom widget without editor possibility.
@honest hearth Of course you can have audio in custom widgets. One of the widgets that uses audio: https://github.com/StreamElements/widgets/tree/master/EmoteComboSounds
I really like the Level Up goal from Anna Dorka but does someone has the code for adding all actions towards the bar. Subs, gifted, Bits and tips?
I think you could mix that up with: https://github.com/StreamElements/widgets/tree/master/CumulativeGoal
@viral patrol Thank you very much
is this where i would ask for a mod to combine?
no, i already send that message in #helpdesk-twitch and even tagged you 😛
no, i already send that message in #helpdesk-twitch and even tagged you 😛
@native trellis im so sorry 🤦♂️ i must have missed the part about that
no problem
@viral patrol Are you there?
Just ask, Lx will reply you soon 🙂
I´m trying to change Level Up goal bar from Anna but counting Tips, Subs and Bits. I`m cluesless on how to write the JSL. Looks like im watching the matrix movie lol @pseudo siren
maybe have a look at this one as it counts bits, subs and tips
https://discordapp.com/channels/141203863863558144/457957557470887947/760415652883726346
Do widgets have a unique id that i can access? to know exactly what widget something is coming from. Or a way to get the overlay id the widget is in?
@hexed ridge and that one i want to combine with the public level up widget
But idk how to combine these two
@viral patrol then what is the process companies use like "Nerd or Die" where you cant edit there widget?
Question, are you guys working on the alert widhets to where in variations when u change the size of the alert it wont effect the other variations?
widgets*
Also, for some reason my community gift alert is triggering my resubb alert
@viral patrol I am having an issue with getting audio into obs studio that i can hear in the overlay preview in browser
hey guys! I have a custom code for a kind of "sub train" that displays an image that I upload. I wanted to know if there is a code for uploading multiple images for this same sub train, and everytime it triggers a different image appears
You could definitely add that
You could definitely add that
@honest hearth do you know how?
If you have the custom code, you would just add more image fields and then you could have a list of images in the code that gets randomly chosen
thanks for the advice man!! im a total noob in coding but i will try it!
If you have the custom code, you would just add more image fields and then you could have a list of images in the code that gets randomly chosen
@honest hearth
No problem. Google is your friend 🙂
@midnight glade if you need any help, feel free to message me
@midnight glade if you need any help, feel free to message me
@honest hearth thanks man! you are too kind
Bulk Gifted Subs seems to clog my queue
@pulsar willow Check this out. It uses "goals" from your session data, to stay current even if your stream is offline: https://streamelements.com/dashboard/overlays/share/5f8d3cf9fdc45e5512fe55eb
@frozen hearth Widgets don't have unique ids nor they have access to overlay id. The only data you can access is described in docs hosted on github
aww that sucks ok ty for the info 🙂
I have used SE_API.resumeQueue(); and set the widget length too. But Bulk Gifted Subs just clog the queue @viral patrol
@stiff jungle They usually have their own accounts with enabled widget share after review. Every users install is independent copy of a widget, so it is not possible to update and populate changes to their clients (as this would also break every user change there).
@sturdy oak Initial event of bulk gift has bulkGifted property you want to check too
Like
if (data.bulkGifted !== true && !data.gifted) {
console.log("Non gift nor initial community gift event");
// Whatever
return;
}
@pulsar willow Check this out. It uses "goals" from your session data, to stay current even if your stream is offline: https://streamelements.com/dashboard/overlays/share/5f8d3cf9fdc45e5512fe55eb
@viral patrol
How can i create a shared link like this ?
@meager parrot This feature is limited to StreamElements partners and Code Gurus.
aw thats bad ;o
I just wanted to share a modified widget to a friend of mine 😮
thanks @viral patrol 😉
Thanks 🙏
hello people,
I got a crazy widget idea that I want to create with Code. I have worked little with HTML and CSS before but have no xp with JS or JSON. Can someone help me about how to get started?
Thanks alot!
Starting JS: https://www.w3schools.com/js/
Starting with SE API: https://github.com/StreamElements/widgets/blob/master/CustomCode.md
Hi ! Is it possible to customize the Kappagen widget (color modification like desaturating) ?
Starting JS: https://www.w3schools.com/js/
Starting with SE API: https://github.com/StreamElements/widgets/blob/master/CustomCode.md
@crisp needle Thanks!!
What API points are there to get YouTube Superchat top donator ?
Hey guys!
Question, is there anyway that I can through the API or something, alter command outputs, like !give for example? So instead of the standard response, I could have a custom response when someone would use that command.
@minor steppe IDK if this is what you look for (is sponsor a YT donator?) but here's documentation for YouTube: https://github.com/StreamElements/widgets/blob/master/CustomCode.md#youtube
Hi there, I have a question related to the ChatBot: Is there a way to trigger a command within a timer? My first try didn't work. The command is just displayed as text, but not triggered.
Not possible. Spam prevention.
Hm, ok... so, if I want a timer, that picks every x minutes a random chatter and show his or her watchtime - Is there a way to do this with the available variables?
@viral patrol that's exactly what i wanted! you are an legend Thank you very much!!!!
You are very welcome. Glad I could help you to make your stream as needed 🙂
everytime i see the code of one of lx or any other code gurus widget i instantly feel ten times worse as a programmer then before 😂
@hexed ridgeLook at that DM 
good to know i am not alone :D every hero (guru) got his weakness 😂
lol
The username provided by SE Api (and reported by the bot in twitch-chat ) for tippers maxes out at 10 characters. Is this going to be changed any time soon? It looks pretty ridiculous in-chat and through any data captured via api
is there a way to test widgets locally (I cloned the custom widgets repo from github) or do I have to upload it to SE test it?
@shrewd wadi Can you elaborate please? I emulated an alert and received full username in Overlay Editor, or are you referring to something else?
See:
["tip-weekly-top-donation"]=>
array(2) {
["name"]=>
string(25) "Dion Starfire (DStarfire4"
["amount"]=>
int(50)
}
The users name gets cut off after 10 characters, the bot in chat also reported it incorrectly (it got cut off after 10 characters)
The users display name is DStarfire42.
Correct me if i am wrong, but it cut off after 25 characters, which would be correct as 25 is the max twitchname length
actually just checked, you cant enter a longer name in the tipping field too
You cannot provide longer name in tipping page and characters limit of 25 is lower than Facebook allows. I think this is a reason of problem here
hey i'm getting a ERR_CERT_DATE_INVALID when bringing up the SE website
@knotty thorn things are being shuffled so it's gonna be a little 
good evening, I'm looking for help with my goal widget. I don't understand why it's 2 values are the same (I haven't received a cheer this month)
var month = 0;
var total = 0;
window.addEventListener('onWidgetLoad', function (obj) {
let data = obj["detail"]["session"]["data"];
month = data["cheer-month"]["amount"]; //this and <-----------
total = data["cheer-total"]["amount"]; //this <-----------
reloadGoal();
});
window.addEventListener('onEventReceived', function (obj) {
const listener = obj.detail.listener;
const event = obj.detail.event;
if ( listener == 'cheer-latest') {
month = month + event["count"];
total = total + event["amount"];
reloadGoal();
}
});
function reloadGoal() {
$('#loading').text( "Month:" + month + " All:" + total );
}
I get 400 for the total and 400 for the month too
@glass kettle You probably received that in the last 30 days, not current month. You can change those settings in Settings tab here: https://streamelements.com/dashboard/session
I went to see, am I at 100 cheer if I read correctly?
I must select Relative Timing or Calendar Timing
suddenly it is not possible to recover the value over 1 month?
because I just want to recover the total amount over 1 month
@crisp needle hmm but there is not top sponsor/superchatter point, like with other donations hmm
@glass kettle You can and you used proper property. Just set it to "calendar" so it will display you all cheers in October instead of all cheers in last 30 days.
thank you very much, I would come back in case of problem because currently he cannot save the changes
The sessions data aggregated is there a easy way to access that data? since i noticed top superchatter is located there, and thats the data im trying to get a hold of.
Does anyone know why audio produced by SpeechSynthesis shows up in the overlay preview but not in OBS?
My first guess would be that it isn't a fully compatible thing with the browser source in OBS
If that's the case, is there any compatible javascript for text to speech?
Hey guys, i need some help on fieldsdata
{ "someText": { "type": "text", "label": "Some Text", "value": "Default text" }
to call in js:
someVariable=fieldData["someText"];
ok
but i want be able to call like fielddata["someText"]["name"] and fielddata["someText"]["link"]
its possible?
Is there anyway we can create a loyalty system with variables for youtube streaming using StreamElements
Is it possible to see the duration of an alert with onEventReceived?
Yeah so I have a custom widget, and an alert box. And when an alert is triggered I'd like to know the duration of the alert inside my custom widget
wont the duration of the alert be the same
Could someone tell me how to grab session data even the aggregated session data, trying to understand that part
@minor steppe #751385980476588062 message
@elder dragon why will the alert duration change?
@elder dragon Here's an example I found in the docs #751385980476588062 message
setTimeout(SE_API.resumeQueue,time*1000); ```
@elder dragon {widgetDuration}
Thank you @viral patrol for your help, I was able to finish my Goal widget 🙂 It can make the Goal of follow, cheers, sub, donations of your choice
hEY GUYS!
It looks like the settings for the Toronto zone time is not accurate.
Can you please fix it?
Hello, I'm in search of a follower progress bar, but custom bar graphics
hello, im little confused about the SE overlay install links, and the question is, how you actually make them, or where to get them from.
@elder parrot If you want to use custom image as progress, there is a widget: https://discordapp.com/channels/141203863863558144/457957557470887947/583954074731282455
@delicate shadow overlay install links are limited to StreamElements partners and Code Gurus.
Sorry for the previous messages, found my mistake! In case someone is looking for the timezones: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
hey, this is a custom stream hub that ive been playing with, and im wanting the box and bar to light up the same color as the icons glow when an alert pops up. im new to codeing and cant seem to figure it out any suggestions?
i messaged in #helpdesk-twitch first and they sent me here
Is this form meant to be closed? https://strms.net/oauth2_request
yes, they are revamping the application system
anyway to get on a mailing list when it reopens?
Unfortunately from what I know there's no ETA on reopening that nor there's newsletter for that.
Hi, is it possible to get the 'excuse of the day' from the bofh calandar into a command or variable? My scripting skills are limited...
Is there a way for my app (twitch extension) to send something like a webhook that triggers a Streamelements alert?
Hi guys, does anybody knows if its possible to add read TTS to a custom alert box widget? (Stars on Facebook Gaming)
@raven jacinth the easier way would be to read data via widget from socket.
@lyric wave This option is in default/custom alertbox:
@viral patrol ah great, websockets would accomplish it. Just to be clear, you're talking about the custom widgets discussed here https://blog.streamelements.com/custom-widgets-5c5b344be8c5 ?
Yes, you can create a connection from widget. Example of one (using Twitch JS library to connect to Twitch websockets for additional chat read) https://discordapp.com/channels/141203863863558144/457957557470887947/647710746171408386
Hi guys, do you have by chance a chat box that moves horizontally for Facebook?There’s one in #widget-share but it’s not compatible with Fb gaming 😕
Actually if you create a custom widget on your FB account and copy code of each tab of code editor, it should work nice
is there a way to turn on and off the Chat Doorbell widget by LX... when streaming a live chat in obs studio?
Hi, is there a way to share your code with just a url or is the marketplace the only appropriate way?
@cursive folio "Follow these steps to grant managers/moderators access to your dashboard:
- Click on your channel name at the top of the dashboard
- Create a new invite at one of three access levels (Bot Supervisor, Editor, Full Control)
- Send this invite to a mod/manager to give them access to your dashboard. The link is one-time-use and expires after 72 hours if not accepted
Video tutorial: https://youtu.be/zl_h-ttZDF0"
The person you're giving it to does that. You want editor.
@pulsar willow You can have it as separate overlay in OBS with "shutdown source when not visible" and just toggle it off when you want it to be off.
thank you
Not exactly what I meant. I meant sending a share-able link to someone and they get the overlay/widget added, without any extra permissions or steps.. or is that the whole marketplace process ? Thanks!
@cursive folio If you are verified partner of StreamElements or a Code Guru this permission may be granted for you.
Alright, thanks chief! Geuss i’ll apply soon then 😊👍
Hello, I want to create groups of fields, what can I do?
thank you
Hi all !
var myValue;
SE_API.counters.get('myCounter').then(counter => {
myValue = counter.value;
});
console.log(myValue);```
Like that myValue=undefined. How can I have myValue outside of the .then function ?
Thanks 🙂
.then is asnychronious, console.log is not . If you want to know the value of "myValue", do it within the then 🙂
Thanks for your reply. I understand a bit async function. Console.log is juste an example for testing. I use the counter value in another function. What can I do for that ?
Hello, I'm wondering if anyone knows anything about how to implement something along the lines of the Rock, Paper, Scissors chat game while allowing to win loyalty points (similar to heist).
I'm hoping I'd be able to find/create a few different chat games such as wordscramble (randomize letters of a word, first to guess the word wins) and similar such ideas like with logic / math / etc. that could be cool to have as chat games 🙂
@rugged jay maybe this can help: https://youtu.be/R-90oeh6MqI
You have to believe me when i say you can do CRAZY things on Twitch with Lioranboard and OBS! I have finally finished version 1 of my Naughts & Crosses / Tic-Tac-Toe game!
You can add this to your stream for free, super easy!
ENJOY!
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
🔗 DOWNLOAD HERE ...
Thanks for your reply. I understand a bit async function. Console.log is juste an example for testing. I use the counter value in another function. What can I do for that ?
@arctic zephyr
You can call your function with your then function. For ex
`function doSomething(ex){
console.log(ex);
}
SE_API.counters.get('myCounter').then(counter => {
myValue = counter.value;
doSomething(myValue);
});`
Does anyone know if there is a way to get your twitch schedule using a custom widget?
I think streamelements has problems, I also have some issues with my alerts
Its possible put a button to add more slots on fields?
Is it possible in a regular widget or custom widget to access the variables set by commands in chat on Twitch? Like a death counter, a goal, etc. I have absolutely ZERO idea how to make a custom widget myself but if that's possible I'd be willing to learn.
@teal bone
@arctic zephyr @cursive folio You can even update a global variable from promise resolve, you don't need to forward that value:
let myValue=5;
function doSomething(){
console.log(myValue);//should output 5 until promise of counters get is resolved
}
setInterval(doSomething,1000);
SE_API.counters.get('myCounter').then(counter => {
myValue = counter.value;
});
@teal bone Unfortunately it is not possible to add new fieldset by button click
@ember zenith You can access counters, goal progress and a lot of other things. Navigate to https://github.com/StreamElements/widgets/blob/master/CustomCode.md to learn more
@rugged jay You can check #widget-share - there are few chat games like Trivia, Roulette, Pokemon Guess.
You can even update a global variable from promise resolve, you don't need to forward that value:
@viral patrol @cursive folio thanks guys ! Have a nice day
@viral patrol Thanks! I actually managed to hack something together using that!
Now I don't have to edit my overlay every time I wanna update a custom goal 😀
Hi, why sound.volume ();, sound.pause(); does not work ?
It should work, but as in regular audio element.
const sound = new Audio(fieldData.soundFile);
sound.volume = fieldData.soundVolume/100; // As user selector is usually 0-100 and accepted values are 0-1
sound.play();
thank you
Has anyone made a Chat command that can add 2 or more users to a multistream. The basic one is set up to link 2 streams in a multistream using multitwitch. Is there a way to make a command that will add 3 - 6 streamers just by typing in "!multi Streamer1 Streamer2 Streamer3 Streamer4 Streamer5 Streamer6" and then it generates the link for up to 6 viewers?
I use "https://www.multitwitch.tv/streamername/$(touser)" for the dual stream, but wanted to add additional streamers to the command. Is this possible?
Ok, figured some of it out. Just add "/$(2)/$(3)...etc." Now is there a way so if the added variables aren't typed in, the command will still work? Right now with this command, "https://www.multitwitch.tv/streamername/$(touser)/$(2)/$(3)" if I don't add the 2nd and 3rd users, the command doesn't work. Is there a way to use 1 command that will work and accept up to 5 additional users?
i need css help... im making an alternative to my event list
it wont align to the right in my stream
yes i have saved it
i tried setting it to !important
im confused
Maybe text-align within containers?
i tried that
i also tried editing the js to put eveting in one div and messed with position
everytime it works in my browser and in SE creator
but not in streamlabs
thought it was streamlabs so i checked obs.live, same issue
in obs.live
i got it. someone dmed me. answer was justify-content: flex-end;
Hello there! I'm using a custom event list widget in my layout but I need some help in editing it, can I get some help here, please?
I can't get to decrease the space between the columns..
Good evening, yes me again, I don't understand why my alerts lasts about 15 seconds.
For a donation goal it's long
"widgetDuration": {
"type": "hidden",
"value": 1
}
https://discordapp.com/channels/141203863863558144/259680142459142144/769393183309824032 Is there a known fix for this?
is someone able to help me enable the !clip command from here https://thefyrewire.com/docs/api/twitch/clips/#required-parameters
@polar hollow The best way is to ping @elder dragon 🙂
As that person is a widget author.
Is there a wheel decide plugin?
Take a look at the #widget-share maybe there is something that fits your needs.
@frail wyvern as in, you are close but need help figuring out the code or you need someone to create the entire widget for you?
@crisp needle I saw your SimpleHUB widget and it looks very cool. I was just wondering if it's possible to somehow change the start event to have it just show the last event that happened? I didn't see that in the list of options. And is it possible to add merch purchases in there as well?
As for now you can only choose from specified options.
hello i have a question how long it takes until the money from streamelemeds is on my paypal acaund because i have been waiting for more than a week
Is there a way to make subgroups in the fields of a custom widget? I recently discovered the "group" attribute, but is only 1 layer of depth possible?
@cursive folio I haven't started it. Also does this require OBS cuz I'm using SLOBS
You can use any software, as long as you have the overlay in there. I think all you need to do is capture the chat input, see if someone says the command you want them to say and send out an API call to create the clip
sorry i dont work with code that went over my head. ive never created a command like this
Does anyone know if there is some way to get the sub count information used in StreamElements Leaderboard from an api? I can't find a way to create a sub leaderboard in my site..
@frail wyvern i took a closer look, just make sure the streamelements bot is in your channel and add a new command like on the screenshot here. Just make sure the XXXX (blue highlighted) is replaced with your API Key
tyvm! looks like it works
When someone gifts 50 subs. Does onSessionUpdate get called 51 times? Or is it called once and all the gift sub data is updated at once?
In an event listener for a custom widget the currency details for an object obj.detail.currency.code is always set as USD, even when the data is EUR for example in the tip list. Any idea why it doesn't fetch the correct data?
So, I'm trying to change the javascript of a custom widget so that I can trigger a different video for each amount of bits (i.e. a video for 1-99 bits, 100-999 bits, etc.) What do I need to do for that?
@pulsar badger obj.detail.currency.code is set to value from https://streamelements.com/dashboard/tipping-settings, obj.detail.currency.name seems to be hard U.S. Dollar but I think nobody uses that property
Am I misinterpreting something then? The goal is to get the currency for a specific tip.
How can we can get the amount of subgifts given at the same time do we get one single event foe each? Or is there a way to know the total amount?
@pulsar badger Each tip is converted on the fly by payment processor to one you have set
@abstract basalt https://github.com/StreamElements/widgets/blob/master/CustomCode.md#on-event bulkGifted property is set for initial event
Ha cool! so it could be bulkgifted and amount would be how many giftsub are given?
FINALLY! We can upload videos and pictures again @fickle mist
@abstract basalt that is correct. You can check custom eventlist widget on GitHub to see am example
@viral patrol thank you!
CSS friends -
Hello! I am creating a custom Sub alert for my stream with SE. I have an icon that spins whenever someone subs. I want to see if there is a way to make the image stay on screen the whole time, and begin the animation when the alert is triggered. Right now it disappears as soon as the animation stops. Any CSS advice?
can anyone with some basic CSS help me out here? All I'd like is ** to have the text on the left side of my gif instead of the right side **(streamelements defaults this in the row layout). Thanks!
@steady iron im using your widget and im having an issue with the graphic being too far to the right and cutoff, how do I fix it?
Can the stacking order of widgets be changed in the overlay editor
Can a widget be brought in front of the other @viral patrol
You should be able to change the order of widgets in the layers options in the overlay editor by darg and drop of the layers.
@pulsar willow I think you could have a video file that has the same start/end frame and used in Custom widget. When there's a new sub, just trigger video.play()
@sturdy oak Widgets can't interact with overlay
I meant can I bring a widget infront of another widget @viral patrol
You can't as widgets can't interact with overlay
@sturdy oak Did you meant using code or just to reorder them in the overlay manuelly before streaming?
peice of cake using code
I was working on this dynamic hud, where its the bare minimum and people can peice it together however they want
But the widgets wont stack on top of each other as I wanted them to, I guess I will need to use 3 overlays to achieve it
All I'd like to do is to put the text on the left side of the gifbut I got no idea how to.
I think you will need to play with margins
@viral patrol No matter how far my margins are, the gif will always be on the far left. Do you think this would require some CSS? It seems really simple yet I have not figured it out
Doing that in CSS would be one way to go, the other would be preparing image with transparency, setting "text over image" and playing with margins then
Image like:
And I think that this way would be way easier
@steady iron im using your widget and im having an issue with the graphic being too far to the right and cutoff, how do I fix it?
@StephenStrong#8632 make sure the source is added as 1920 x 1080
@pulsar willow I think you could have a video file that has the same start/end frame and used in Custom widget. When there's a new sub, just trigger
video.play()
@viral patrol I will try that but how do I get it to stay there?
Use a custom widget with <video> element and in JS play it on every subscriber-recent event
oh okay.. so it will freeze the video on the first frame ? and then trigger the video when someone subs?
Yup. You can play with like:
var vid = document.getElementById("vid");
vid.currentTime = 1;
updated my widget, thoughts? also anyone have a good idea as to where i could get holiday inspired icons/effects for the seasonal variants of this?
Hi, i have an alert box widget that has custom css applied to it and it works perfectly in the browser. When i add it as a browser source to ObsLive the @keyframe animations don't apply to the text. How do i fix this?
This might be because invalid CSS which Chrome is ok with, like opacity: 50% when it should be opacity: 0.5. OBS is more strict about that
ahhh that makes sense. ive use 50
50%
thankyou ill try that now
Perfect, that works great
can streamelements pull whether a person has gotten a tier 1, 2 or 3 sub?
If i wanted to edit the code to my widget to show username, tier, and amount; how would i do that? ive only seen things on them separately?
@neat tangle You have tier property which is enum string of "1000", "2000", "3000", "prime"
@viral patrol perfect, think that's exactly what I need
@neat tangle For more fancy stuff I recommend Overlay Editor documentation from channel's topic 🙂
hey! i'm very new to all of this. i'm using grot's credit roll, but there is no option for custom fonts like in other widgets. i've had a look around for ways to insert my own code to add my custom font (chaos) but i can't find anything. anyone have a noob friendly fix?
Hello, how can I make an alert for each item in the stream store?
Hey. I wanna try streaming on youtube and so i looked over the newest widgets.. Sadly the ones i like are made for twitch. Can't i just copy, paste and edit the code for youtube? I guess it should be possible, but what do i have to consider etc?
@tacit field Hi. Copying the code should work in most cases, but keep in mind that YT features are different. Like there's no loyalty and events are different. Code is universal besides that.
@merry wharf Are you talking about loyalty or merch?
I'm curious if there are any other settings for changing the timing on TTS for cheer variations?
I have this setup for the donation TTS and it plays right after the alert sound goes off. The cheer alert doesn't activate TTS until the alert is already finished.
If anyone's having issues stacking their widgets or other elements on top of each other, just drag them up or down in the left panel. Yea, it works
Hello, is there a way to use
${customapi https://api.jebaited.net/addPoints/JEBAITEDTOKEN/${sender}/${random 0-500}}
But to set exactly 500 Points instead of random 0-500
Already tried changing ${random 0-500} to ${500} and ${random 500-500}
@viral patrol
Nvm just solved it
Anyone know how do I get the JWT bearer from a custom Widget?
Scenario: I want to know if the media request is currently playing, and if so, show a <div> element, but if paused (or non-playing), then hide it.
I got this from the 'onWidgetLoad' event.
{
"apiToken": "x",
"id": "x",
"providerId": "x",
"username": "perritu"
}
I'm trying with the documentation, but I have no idea where getting the JWT Bearer (from the API, not from the dash)
https://docs.streamelements.com/reference/songrequests#songrequestplayerbychannelget
I think you should be able to query it using apitoken too.
Authorization: apikey YourApiToken
Oh. Thanks a lot. You really made my day, @viral patrol !
Does anyone know if there will updates or improvements to the playing VODs on stream overlay? I really like the overlay but it has issues. Namely, only 2 vids per overlay, it also claims 2 audio files per overlay too but the second one never seems to work (this is on all 4 of the VOD overlays I'm currently using), and lastly there is no option to let all viewers activate the VOD commands, only Streamer/Mods/VIPs. It would be good if I could define some commands to be used by anyone, and some can be used only by subscribers. Long post sorry
I recommend to use the stream store for that purpose.
What is the code for followage command and watchtime command mine are missing.
If you are on twitch, then they are in your default commands list.
I recommend to use the stream store for that purpose.
@rugged rapids Hi, I don't understand how to do this, the stream store only seems to allow sounds to be played on stream not videos. Am I missing something obvious?
Create a stream perk item.
Just wondering, how long do widget submissions usually take?
They are all queued up to be published, they may be accepted earlier
out of curiosity is there a way to create a countdown to a specific day/time command on streamelements? I imported my command from nightbot but it doesnt seem to work. Here is the command I had in nightbot as a reference:
There are $(countdown Dec 25 2020 12:00:00 AM US/Pacific) till Christmas!! 🎅
hi im very new to streamelemetns and been trying to adjust my overlays from the streamlabs page and it never seem to fit it's either to big or WAY to big the over lay just doesn't fit
I'd like to make a custom widget that uses event occurrences as a resource of sorts that the streamer can redeem. To do this I want to have an event increment a counter, but it seems that counters can only be read by widgets, and only commands can update the bot counter. Is there a way to update the value of a counter from the custom widget javascript? The host would be able to decrement the counter via command, but my goal is to automate the incrementing.
Create a stream perk item.
@rugged rapids is there a walkthrough of how to do this? I cannot figure it out sorry
@timber sierra Try ${time.until <utc time>}
Hello not sure where to ask this question, but is there any way to Edit any "default command" on stream elements bot ?
EDIT-
i mean edit the text that pop up on ur stream etc.
Depends on the command you want to alter; you could disable the default then add it back in as a "custom command" @spiral niche
I like the concept @twin spear .... I think the best route would be to set up a custom widget and use the "store" for the counter ... the bot is in it's own world and doesn't play well with overlays
Is there anyway to get this https://codepen.io/Silence_shh/full/KKMobEX into Streamelements?
Sure. Just create custom widget
yup. i used codepen for all my projects ^^
And paste contents of tabs from here: https://codepen.io/Silence_shh/pen/KKMobEX , to editor tabs
I thought so, but when I do that it does not show up the same
Oh. One thing. In CSS click ⬇️ and select "View compiled CSS"
okay
LUL i feel so slow now
didn't even think of that
Thank IZ
i'm over here testing each line, cause i know i'm not crazy i've use stuff like this before and it wasn't working
my bad @viral patrol
Worry not. Glad you have it working 🙂
@weary nebula New to StreamElements?
Check out our YouTube channel https://www.youtube.com/c/streamelements/videos
with tutorial videos from setting up the basics, to in-depth details on how to use our product.
New to OBS? Here is a 4 step quick start guide
https://obsproject.com/wiki/OBS-Studio-Quickstart
Want to learn even more? Here is an in-depth overview
https://obsproject.com/wiki/OBS-Studio-Overview
I added Overlay Editor keybindings to documentation. I hope this will help you a bit: https://github.com/StreamElements/widgets/blob/master/CustomCode.md#overlay-editor-shortcuts
Is there a way to bring layers from other overlays
@neat tangle Click the 2 square icon with the desired layer in one overlay and then choose the one to copy it to.
The 2 square icon? Sorry I don't know which one you mean
You're lucky I'm in the editor right now. Gimme a sec 
Click the widget in the layer list and then the icon to copy it over.
Ohhhhhhhh legendary! Thankyou 
@timber sierra Try
${time.until <utc time>}
@viral patrol I had tried that and it doesn't work, can only put a specific time in there, not a date/time
Hi guys, does anyone know if there's a way to trigger an overlay element remotely?
I'm subscribing to the twitch PubSub topic for channel point redemptions in a local app and I'd like to be able to send a message to my overlay to trigger, for example, a gif to be shown.
Can I report beta issues in this chat?
Project Mercury
Don't have that on my list dang ok
ah wait, i'll get someone to give you access
Ty
@scarlet shuttle should be good to go now
So, if I want to submit a widget and paste the code into a JSFiddle, do I have to mock the field-data with example/test values or can I just post it with variables?
It wouldn't work without SE Events anyways
Is there any updates for the Extra Life Donation Goal Tracker? Mine is still showing $0 raised and was working earlier in the week.
What should I import if I want recent event? Like followers, subs and all of the regular twitch events but it changes when something new happens. Just like the event list does it. Thank you for any information on the topic:)
Thank you, which one in specific would it be? Not finding anything about it:/
@elder dragon hey man, im having a problem with your widget
My bar has turned into dots
hi this form not work https://docs.google.com/forms/d/e/1FAIpQLSf0QppxXBTG1Qbuh2ylZyLtsZK-1b3-kEz1ofwipSNcjwOlOA/closedform
@viral sparrow currently closed atm. No eta when it will be reopened.
how could i get my api key ?
You need to use jwt tokwn for now.
its hard to describe our user to how they get jwt token. is there any simple way now?
Outside of providing a video not really.
Actually if they can follow 2 simple steps yes.
Please provide your account ID found at the top of this page: https://streamelements.com/dashboard/account/channels This ID is public info and safe to share here.
Provide that link and show secrets.
Account ID
5f9dbd834d410e1204ed8648
@arctic robin You can have Event list, Just set "number of displayed events" to 1 and you will have the one that happened last 🙂
ı need api key pls help me bro ?
@viral sparrow should've explained better.
They click that link then show secrets. Use that.
I understand that users should not share their JWT with 3rd party at all
Thank you!! @viral patrol
@viral sparrow I will ask around
@viral sparrow Can you dm me with your project URL, so I can attach it to query?
anyone else stuck with a white screen on the webiste? hard refresh isnt working.
@celest escarp On chrome?
microsoft edge
You need chrome.
Our Dashboard and Overlay Editor are Chromium Optimized. We strongly recommend using Chrome. Opera GX and the new Microsoft Edge Chromium might work closest to Chrome as its also Chromium built. Firefox also works, but some things might look a bit different or not work. We do not recommend using Internet Explorer with our Dashboard as it does not support functions.
If the website doesn’t work on chrome, be sure none of your plugins is blocking our website or clear your cookies. You can try if the website works in an incognito tab.
Hello I don't find my API code on the dashboard, can you help me ?
@pulsar willow Have you filled out the form and been approved?
@viral patrol Can I change it's css and such? Lite in the custom widget editor?
The easiest way is to create Custom widget:
@pulsar willow Have you filled out the form and been approved?
@hardy walrus on the website ? I think It's the wrong channel for my question
And replace its code with the latest version: https://github.com/StreamElements/widgets/tree/master/CustomEventList
@arctic robin ⤴️
@pulsar willow Can you elaborate a bit please?
I want to see my API code toi delete my accompt
@pulsar willow You can close your account in Security tab here: https://streamelements.com/dashboard/account/channels, if you want to grab your token. it is in "Channels" tab when you toggle "show secrets" on the right of that page
hey, i'm getting a 403 from imgur - are we not allowed to use images from there?
(i'm using the custom widget)
Hi guys ! I'm working with goal widget by MrBoost, Do you know what to change to show sub goal + count instead of just sub count on the overlay ?
@broken coyote ⤴️
@tropic wagon should just need to add in a couple lines. Once I get up and moving I’ll check it out
I'm trying to set up a custom Chat widget, but when i change the time to show messages it breaks the custom widget design i'm trying to us. would anyone know how fix that from happening?
Thanks @broken coyote 🥰
merci beaucoup @ix
@polar hollow Do you have the latest events enabled? (For some reason, when you install it they are all disabled and this breaks it)
@tropic wagon depending if you have it on the first line, or second. just add this in the HTML section
@elder dragon everything is enabled
Thanks so much @broken coyote 🙌
Huh that's really weird! Let me do some investigation and I'll see what I can do
Was it like that on install? @polar hollow
it wasnt
i have not
Try that!
iv lost where the download was, do you have a link?
it works!
🎉
ill have to re-code things back in and out
is it possible to send data to a custom widget via a query parameter? or custom CSS within OBS? Im looking to update something like usernames per OBS instance
@knotty thorn imgur blocks requests from external resources as they are community, not "free hosting".
@simple moss You can have a custom widget that grabs data from external resource and displays text, like:
fetch("https://your.web.hosting.com/myscript/user/?instance=obs_1").then(response=>response.text()).then(text=>{
document.getElementById("user").innerHTML = text;
});
With that you will be able to update text outside of editor
As widgets don't accept any parameter, they are iframes within overlay.
Hello, i want to create a starting soon that counts the twitch messages, if the messages reach 100 for example an animation appears in the screen, if its reach 200 another animation appear and so on
anyone can help me with the programming ?
Hello, I have a team widget I'm creating that will be used to display team members that are live, which is working well. I'd also like to have the widget accept a command from chat that replies to chat with links to all team members that are live. Is there anything available to the widget that can accomplish this? Or would it be better to do through the Twitch API? Maybe a StreamElements API call?
Sorry, nevermind. I'll go with the bot > send message approach.
so i found a bug with one of the widgets that are on the official website. i contacted the og developer of the widget and they said they no longer maintain/update it. can anybody else help fixing it? i dont know css/html
Which widget is that
the widget is the LEVEL-UP GOAL by Annedorko
the issue is that it doesnt stop when reaching the limit. for example if you set a total of 3 goals, when the 3rd goal is completed, the bar empties and the count changes from "3 of 3" to "4 of 3"
I will look into this. Thank you for the report
thanks 😄
@jolly cradle Find this part:
And remove selected = character
(It is JS tab)
So it is for (var cycle=1;cycle<maxLevel;cycle++) {
how do i reach the code?
Open editor button.
i must be blind or something 🤦
I think ya need to click the layer then settings.
hi everyone, I have a little problem with "Custom Chat" widget (by LX)
the last line doesn't appear full
I went to the settings and tried to change the CSS but it didn't work
What did you set the number of messages to?
it worked, thanks
noticed another thing which is sort of a bug too. if a donation alert is suppressed by the profanity filter, the donation doesnt appear or count anywhere
What did you set the number of messages to?
@hardy walrus 10
You don't have the overlay aligned correctly.
That and i don't think your overlay is the correct size.
the overlay is not aligned correctly ? Wym ?
I don't know how can I do this
👏