logo

Live Production Software Forums


Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
WatsonPrunier  
#1 Posted : Monday, October 2, 2023 10:40:55 PM(UTC)
WatsonPrunier

Rank: Member

Groups: Guests
Joined: 4/30/2020(UTC)
Posts: 22

Thanks: 2 times
Problem:
Even though I insert this value for the timer, it never stays and errors out:

My broadcast beings at 7:03:25AM, Monday through Friday. Even though, the graphic shows, {0:08:03:25AM|mm:ss}, it also fails with {0:07:03:25AM|mm:ss}

TimerError1.png (50kb) downloaded 0 time(s).

It always goes back to this value:
TimerError2.png (48kb) downloaded 0 time(s).

When I go to edit, I get the following error:
TimerError3.png (25kb) downloaded 0 time(s).

The value saved us based on something unknown:
TimerError4.png (23kb) downloaded 0 time(s).

Solution:
Add a field in the Countdown Settings window that allows for an actual time set that could be recurring.
doggy  
#2 Posted : Monday, October 2, 2023 11:16:45 PM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,254
Belgium
Location: Belgium

Thanks: 294 times
Was thanked: 963 time(s) in 797 post(s)
Originally Posted by: social_wp@outlook.com Go to Quoted Post
Problem:
Even though I insert this value for the timer, it never stays and errors out:

My broadcast beings at 7:03:25AM, Monday through Friday. Even though, the graphic shows, {0:08:03:25AM|mm:ss}, it also fails with {0:07:03:25AM|mm:ss}


It always goes back to this value:


When I go to edit, I get the following error:


The value saved us based on something unknown:


You are using a countdown TO time so of course it is going to end up with zero displayed . FYI might aswel add the HH within {0:08:03:25AM|HH:mm:ss}

have a script that check when it reachen 00:00 and let it display the actual time (or whatever you fancy) or create a script for a countdwn to ones liking




Quote:


Solution:
Add a field in the Countdown Settings window that allows for an actual time set that could be recurring.


The countdown to time (clocks) and the countdown are completly separate items in workings
The countdown to time is allready recurring when you pass midnight

if one wants a countdown to a certain displayed time one has to specify a DURATION = starting it x time before the actual "time" as it will then when started be counting down from th endtime + the duration unti end tim defined which is NOT related to a real clock!
WatsonPrunier  
#3 Posted : Monday, October 2, 2023 11:52:03 PM(UTC)
WatsonPrunier

Rank: Member

Groups: Guests
Joined: 4/30/2020(UTC)
Posts: 22

Thanks: 2 times
Thank you, I did not even think about adding the hour in the countdown. Duh! I am horribly multitasking. Let me update this and see what happens.

Originally Posted by: doggy Go to Quoted Post
Originally Posted by: social_wp@outlook.com Go to Quoted Post
Problem:
Even though I insert this value for the timer, it never stays and errors out:

My broadcast beings at 7:03:25AM, Monday through Friday. Even though, the graphic shows, {0:08:03:25AM|mm:ss}, it also fails with {0:07:03:25AM|mm:ss}


It always goes back to this value:


When I go to edit, I get the following error:


The value saved us based on something unknown:


You are using a countdown TO time so of course it is going to end up with zero displayed . FYI might aswel add the HH within {0:08:03:25AM|HH:mm:ss}

have a script that check when it reachen 00:00 and let it display the actual time (or whatever you fancy) or create a script for a countdwn to ones liking




Quote:


Solution:
Add a field in the Countdown Settings window that allows for an actual time set that could be recurring.


The countdown to time (clocks) and the countdown are completly separate items in workings
The countdown to time is allready recurring when you pass midnight

if one wants a countdown to a certain displayed time one has to specify a DURATION = starting it x time before the actual "time" as it will then when started be counting down from th endtime + the duration unti end tim defined which is NOT related to a real clock!


Roy Sinclair  
#4 Posted : Thursday, October 5, 2023 7:17:43 AM(UTC)
Roy Sinclair

Rank: Advanced Member

Groups: Registered
Joined: 11/23/2020(UTC)
Posts: 170
United States
Location: Wichita

Thanks: 10 times
Was thanked: 24 time(s) in 20 post(s)
A countdown to a specific time script:

Code:


' Because this partial implementation of VBSCRIPT doesn't support basic programming features like Functions or Subs everything has to be top down inline code.
' I'm going to have to see if I can't use Visual Studio and the vMixAPI.DLL


'Countdown to Service start Script

' vMix Inputs - All will be referenced using their unique "key" (GUID) which will only change if the input is deleted and then added again, otherwise changing the name or input number will not affect this script
Dim WhichCountdownScreen() as string = {"17abeafe-9243-45a7-879d-94491046b873","b843684a-de64-4b1f-9fd9-bee3316c47c9"}
Dim CountdownScreen as string
Dim WhichCountdownTitle() as string = {"3e500d73-872c-4841-aa5c-67ebbf46d486","610f7530-72ff-4449-9180-cd4f9d0a4dc2"}
Dim CountdownTitle as string
Dim CountdownTitleText as string 
Dim CountdownBackgroundMusic as string = "d34761a6-5c99-4bbd-acb8-6e4561d31eaf"
Dim AudioFeedFromSoundBoard as string = "57d87e62-8130-4b7a-a893-741d6c6c6472"
' Sunday Service begins in {0:10:00 AM|mm:ss}

Dim ServiceTime as string
Dim StreamingStartTime as string
Dim DayOfWeek as string = DateTime.Now.ToString("ddd") 

Dim dtServiceTime as DateTime
Dim dtStreamingStartTime as DateTime 

If DayOfWeek = "Sun" Then
	CountdownScreen = WhichCountdownScreen(0)
	CountdownTitle = WhichCountdownTitle(0)
	CountdownTitleText = "Sunday Service begins in "
	dtServiceTime = new DateTime(Datetime.Now.Year, DateTime.Now.Month, DateTime.Now.Day ,10,00,00)
	dtStreamingStartTime = new DateTime(Datetime.Now.Year, DateTime.Now.Month, DateTime.Now.Day ,09,45,00)
End If
If DayOfWeek = "Wed" Then
	CountdownScreen = WhichCountdownScreen(1)
	CountdownTitle = WhichCountdownTitle(1)
	CountdownTitleText = "Wednesday night Bible Study begins in "
	dtServiceTime = new DateTime(Datetime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, 18,30,00)				' yyyy,mm,dd,hh,mm,ss - 24 hour time
	dtStreamingStartTime = new DateTime(Datetime.Now.Year,DateTime.Now.Month, DateTime.Now.Day, 18,20,00)
End If

StreamingStartTime = dtStreamingStartTime.ToString("hh:mm")
ServiceTime = dtServiceTime.ToString("hh:mm")
console.writeline ( "ServiceTime=" & ServiceTime & " Stream starting time=" & StreamingStartTime & " Current time=" & DateTime.Now.ToString("hh:mm"))
API.Function("Restart",CountdownBackgroundMusic)
API.Function("Play",CountdownBackgroundMusic)
API.Function("CutDirect",CountdownScreen)
API.Function("AudioOff",AudioFeedFromSoundBoard)
API.Function("AudioOn",CountdownBackgroundMusic)

'		Main timer Loop
'
Do While True
	If ServiceTime = DateTime.Now.ToString("hh:mm") Then
		' The times match so exit the loop!
		Exit do
    End If
    If StreamingStartTime = DateTime.Now.ToString("hh:mm") Then
		' Time to start the streaming
		API.Function("StartStreaming","0")
	End If
	' Here we will update the countdown time in the "HeadlineText" of the countdown screen
	
	Dim tsHowLong as TimeSpan = dtServiceTime - DateTime.Now
	Dim stHowLong as String = tsHowLong.ToString.Substring(0,8)
	If stHowLong.Substring(0,2) = "00" Then
		stHowLong = stHowLong.Substring(3,5)
	End If
	API.Function("SetText",Input:=CountdownTitle,SelectedName:="Headline.Text",Value:= CountdownTitleText & stHowLong)
	sleep(1000)  ' Sleep for one second
Loop

API.Function("AudioOff",CountdownBackgroundMusic)
API.Function("Pause",CountdownBackgroundMusic)
API.Function("AudioOn",AudioFeedFromSoundBoard)



It's an edited down version of what I run for our services (removed things like auto playing out animated logo at the beginning).

It should work for you with a little bit of tweaking to meet your needs.
Users browsing this topic
Guest (2)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.